summaryrefslogtreecommitdiff
path: root/source/kde/patch/kde-runtime/kde-runtime.fix.konqueror.manpage.infopage.display.diff
diff options
context:
space:
mode:
Diffstat (limited to 'source/kde/patch/kde-runtime/kde-runtime.fix.konqueror.manpage.infopage.display.diff')
-rw-r--r--source/kde/patch/kde-runtime/kde-runtime.fix.konqueror.manpage.infopage.display.diff20
1 files changed, 20 insertions, 0 deletions
diff --git a/source/kde/patch/kde-runtime/kde-runtime.fix.konqueror.manpage.infopage.display.diff b/source/kde/patch/kde-runtime/kde-runtime.fix.konqueror.manpage.infopage.display.diff
new file mode 100644
index 00000000..0f9ae9a2
--- /dev/null
+++ b/source/kde/patch/kde-runtime/kde-runtime.fix.konqueror.manpage.infopage.display.diff
@@ -0,0 +1,20 @@
+--- ./kioslave/info/kde-info2html.orig 2014-10-31 00:50:20.000000000 +0100
++++ ./kioslave/info/kde-info2html 2018-11-01 18:30:29.718723253 +0100
+@@ -172,7 +172,7 @@
+ next if $looking && !/\* Menu/;
+ $looking = 0;
+ my @item = &ParseMenuItem($_,'dir');
+- if (!defined(@item)) { next }
++ if (!@item) { next }
+ my ($MenuLinkTag, $MenuLinkFile, $MenuLinkRef, $MenuLinkText) = @item;
+ if ($MenuLinkRef eq $FileName) {
+ &Redirect($MenuLinkFile, $MenuLinkTag);
+@@ -430,7 +430,7 @@
+ sub MenuItem2HTML {
+ my ($Line, $BaseInfoFile) = @_;
+ my @parse_results = &ParseMenuItem($Line, $BaseInfoFile);
+- if (!defined (@parse_results)) { return $Line; }
++ if (!@parse_results) { return $Line; }
+ my ($MenuLinkTag, $MenuLinkFile, $MenuLinkRef, $MenuLinkText) = @parse_results;
+ #-- produce a HTML line
+ return "<tr class=\"infomenutr\"><td class=\"infomenutd\" style=\"width:30%\"><ul><li><a href=\"info:/$MenuLinkFile/$MenuLinkTag\">$MenuLinkRef</a></ul></td><td class=\"infomenutd\">$MenuLinkText";