Bug 104850 - HELPWIKI: Handle <acronym> item type
Summary: HELPWIKI: Handle <acronym> item type
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Documentation (show other bugs)
(earliest affected)
Hardware: All All
: medium normal
Assignee: Not Assigned
Whiteboard: target:
Depends on:
Reported: 2016-12-21 22:25 UTC by Gabor Kelemen
Modified: 2016-12-21 23:18 UTC (History)
0 users

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen 2016-12-21 22:25:15 UTC
python2 help-to-wiki.py -r -n 
Generating the titles...
Path to the .po files not provided, using "../translations/source"
Currently generating helpwiki pages in the 5.3 branch gives exceptions like this because of the new <acronym> item type:

$ python2 help-to-wiki.py -r -n 
Generating the main wiki pages...
Warning: Unhandled element "switch" in "default" (source/text/shared/01/02100000.xhp)
Warning: Unhandled element "case" in "default" (source/text/shared/01/02100000.xhp)
Unhandled item type "acronym".
Exception in thread Thread-380:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
  File "/home/gabor/src/core/helpcontent2/to-wiki/wikiconv2.py", line 1391, in run
  File "/home/gabor/src/core/helpcontent2/to-wiki/wikiconv2.py", line 1305, in get_all
    return self.head_obj.get_all()
  File "/home/gabor/src/core/helpcontent2/to-wiki/wikiconv2.py", line 369, in get_all
    text = text + i.get_all()
  File "/home/gabor/src/core/helpcontent2/to-wiki/wikiconv2.py", line 1170, in get_all
    raise UnhandledItemType('Paragraph id: '+str(self.id))
UnhandledItemType: Paragraph id: par_id030820161744123676

Unhandled item type "acronym".

(and three more similar exceptions)

This is already fixed in master: 

Here I'm requesting permission to backport to the 5-3 branch.
Comment 1 Commit Notification 2016-12-21 23:15:52 UTC
Gabor Kelemen committed a patch related to this issue.
It has been pushed to "libreoffice-5-3":


tdf#104850 Handle 'acronym' item type
Comment 2 Adolfo Jayme 2016-12-21 23:18:35 UTC
> Here I'm requesting permission to backport to the 5-3 branch.

No need to ask for permission to anyone; just propose in Gerrit as you have done.
And while it’s in the beta phase, you can merge backports on your own — when it enters the RC phase, you’ll need a review from another person to merge it.