summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/ww8par.hxx
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2019-11-14 17:37:17 +0100
committerVasily Melenchuk <vasily.melenchuk@cib.de>2021-04-13 15:55:06 +0300
commit0f7130769d3e6578c4cd718ed8823c0e1a821dd8 (patch)
treecce4d788f99c0652ecdc5d8bed489901ac1e31ca /sw/source/filter/ww8/ww8par.hxx
parent638edce46faaef3e2799ad154acc21076c7d6d9a (diff)
sw: WW8 import: instead of control character insert '?' for footnote
SwWW8ImplReader::ReadChar() inserts a U+0002 control character to temporarily mark a footnote anchor; this is then deleted and replaced with a real footnote hint by SwWW8ImplReader::End_Footnote(). The assumption is that it is necessary to insert a placeholder character to be able to apply formatting to it. But if the document is corrupted, the control character could survive the import, which sounds less than ideal. So either make this magic character more explicit by documenting it in hintids.hxx and removing any outstanding ones at the end of the import, or use a non-offensive character instead; since this should only affect invalid documents, choose the solution with the least effort. Change-Id: I76d396258b32e0f0fb6393942a58a4dc57912211 Reviewed-on: https://gerrit.libreoffice.org/82760 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> (cherry picked from commit 13ba765c444713b0b0b2f4b4231bdafcbbef6ad0)
Diffstat (limited to 'sw/source/filter/ww8/ww8par.hxx')
0 files changed, 0 insertions, 0 deletions