https://bugs.freedesktop.org/show_bug.cgi?id=72308

          Priority: medium
            Bug ID: 72308
          Assignee: [email protected]
           Summary: FORMATTING: Better way of .doc to .html conerversion
                    with centering
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: [email protected]
          Hardware: Other
        Whiteboard: BSA
            Status: UNCONFIRMED
           Version: unspecified
         Component: Writer
           Product: LibreOffice

Created attachment 90222
  --> https://bugs.freedesktop.org/attachment.cgi?id=90222&action=edit
The one of many files that I experience this frustration with in .doc format

Problem description: 

I've been experiencing this for a long time in LibreOffice Writer and frankly
I'm tired of it. I help out a client with turning his documents that he wrote
in Microsoft Word 2000/2003 into HTML so I can put them up on the Internet.
Every single time I convert from a .doc file to .html file, the centering of
titles in the document and the like become flush left. Well, after I looked at
the page source I immediately started hacking at the problem and discovered
that LibreOffice sets some goofy version of the align property and it looks
like this:

ALIGN=CENTER

That way does nothing for centering things when converted. What I DID find that
works however, is that when there's a <p class> tag

For example:

<P ALIGN=CENTER STYLE="widows: 0; orphans: 0"><B>FOOBAR</B></P>

Will not work. But THIS does center the text:

<P STYLE="widows: 0; orphans: 0; text-align: center"><B>FOOBAR</B></P>


There any way someone can get the Writer to do this instead of that goofy
ALIGN=CENTER thing? Thanks :)


My current OS: Ubuntu 13.10
My version of LibreOffice: 4.1.2.3
Browser used: Mozilla Firefox 25.0.1


Steps to reproduce:
1. Open a .doc file in LibreOffice Writer and save it as .html using
LibreOffice Writer
2. Open in Firefox
3. Anything meant to be centered is now flush left

Current behavior:

Centered text flushes left

Expected behavior:

Centered text
Operating System: All
Version: unspecified

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to