简体   繁体   中英

HTML export from LibreOffice Writer

I want to export formatted text from LibreOffice to HTML. By default, it is exported with lot of inline styles.

Is it possible to keep the semantics of the formatting ( <p> , <ul> , <h2> and so on), but get rid of the inline styles?

For example, I get <p lang="de-DE" class="western" align="justify" style="margin-bottom: 0in">

What I want is just: <p>

Thanks and regards,

Adriana

If you are using an automated HTML converter type situation you kinda just have to take what you get and modify it yourself. The reason it has all of the styling is because it needs that to make the exported html file look like the libreoffice file. From what you said, it looks like you don't want all of the style from libreoffice and you just want it to look like a barebones html document. These defeats the purpose of using libreoffice to export the html rather than just creating the html document from scratch from a bare bones text editor or and IDE. If the document you are trying to convert is already a libreoffice document, I would recommend just copying and pasting the sections you want into a barebones document in the tags you want.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM