[kde-doc-english] Error replacing help:foo (local links) on doc.kde.org
Burkhard Lück
lueck at hube-lueck.de
Fri Oct 24 16:13:59 UTC 2014
Hi,
with Revision 1276619 I applied a patch from T.C. Hollingsworth to generator
script to replace local links with links to d.k.o
The expression we use is:
sed -r -i "s|help:/*((kioslave/\|kcontrol/)?[A-Za-
z]+)/*|/?branch=$branch\&language=$lang\&application=\1\&path=|g"
*.html
But that does not work properly with underscores in names, e.g
"help:/akonadi_sendlater_agent"
is replaced with
https://docs.kde.org/?branch=stable&language=en&application=akonadi&path=_sendlater_agent
but it should be
https://docs.kde.org/?branch=stable&language=en&application=akonadi_sendlater_agent
Anyone knows a solution, my regxexpr fu is really limited?
Thanks.
--
Burkhard Lück
More information about the kde-doc-english
mailing list