Item13434: FootNotePlugin screws up WebChanges Layout

Priority: Urgent
Current State: Confirmed
Released In: n/a
Target Release:
Applies To: Extension
Component: FootNotePlugin
Reported By: LieVen
Waiting For:
Last Change By: GeorgeClark
FootNotePlugin is working properly, but it seems to mess up my Webchanges results. I'm not sure this is the problem, maybe it's something else - anyway the problem starts at the position where the footnote is displayed in the changes results. It gives an incorrect link and moves other results down to the end of the page. The following image will show the problem.

(click to enlarge)


If you like, you can check the page directly:

Thanks for any answer. -- LieVen - 25 May 2015

I think what's going on is that the non-standard footnote syntax {{ ... }} is truncated in the summary, and the regex which extracts the footnote in the "common tags handler" runs away and matches all of the summaries until it finds a summary with an ending }}.

I'm not sure if there's a great way to fix this. We could try to hack the Footnote hander to exclude foswikiSummary divs which are generated in WebChanges. Another way would be to convert the extension to use a %FN{} conventional macro instead of the {{ }} markup. Another option would be to disable the extension on pages like the WebChanges page. That might be more reasonable as it's unlikely that footnotes would be useful on that page. (Actually it would need to be disabled on any pages using SEARCH macros with topic summaries).

-- GeorgeClark - 15 Aug 2016

FootNotePlugin is broken by its own design. It needs a rewrite.

-- MichaelDaum - 16 Aug 2016
Topic revision: r5 - 25 Sep 2016, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy