On 2001-07-12-14:54, Hubert Figuiere wrote:
> Nils Barth �crit:
>
> > On the other hand, bugs 1399, 1437 involve creating invalid files
> > (unreadable by AbiWord, and in fact invalid XML),
>
> I marked 1399 with dataloss keyboard.
> I urge that 'dataloss' bugs be squashed ASAP.
Alright -- check out bug 1524.
It's actually two bugs -- the first one got squished by the great
XHTML work recently, the second one was noted in a comment:
If you have any empty paragraphs in your document (say, a blank
document), then the resulting XHTML file cannot be imported, because
it places a <br /> improperly.
One-line fix (attached, also on Bugzilla).
--
-pookie
Index: abi/src/wp/impexp/xp/ie_exp_HTML.cpp
===================================================================
RCS file: /cvsroot/abi/src/wp/impexp/xp/ie_exp_HTML.cpp,v
retrieving revision 1.81
diff -u -r1.81 ie_exp_HTML.cpp
--- abi/src/wp/impexp/xp/ie_exp_HTML.cpp 2001/07/12 08:12:52 1.81
+++ abi/src/wp/impexp/xp/ie_exp_HTML.cpp 2001/07/13 18:20:01
@@ -321,11 +321,11 @@
if(m_iBlockType == BT_NORMAL)
{
- m_pie->write("</p>\n");
if(!m_bWroteText)
{
m_pie->write("<br />\n");
}
+ m_pie->write("</p>\n");
}
else if(m_iBlockType == BT_HEADING1)