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

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 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
    self.run()
  File "/home/gabor/src/core/helpcontent2/to-wiki/wikiconv2.py", line 1391, in run
    file.write(parser.get_all())
  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: 
https://cgit.freedesktop.org/libreoffice/help/commit/?id=7de8eed8b1b908c9e37f6e2499f37768a2354d27

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":

http://cgit.freedesktop.org/libreoffice/help/commit/?id=3d9e4e094a7ebd9f16c931fcdbf95d144f80b2b0&h=libreoffice-5-3

tdf#104850 Handle 'acronym' item type
Comment 2 Adolfo Jayme Barrientos 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.