You are here: Foswiki>Tasks Web>Item8953 (30 Apr 2010, SvenDowideit)Edit Attach

Item8953: search count and search summary are missing linefeeds causing formatting errors

pencil
Priority: Urgent
Current State: Closed
Released In: 1.1.0
Target Release: minor
Applies To: Engine
Component:
Branches:
Reported By: CrawfordCurrie
Waiting For:
Last Change By: SvenDowideit
You can see the effect at http://trunk.fowiki.org/TestCases.TestCaseAutoFormattedSearchDetails fails on trunk, simple format=" * !$web.!$topic" - note how the bulleted list is broken on the results for each successive web. It appears to be related to the handling of the separator between each successive group of web results.

(or view this topic on trunk)

%SEARCH{
    "(WebPreferences|WebStatistics|WebHome)$"
    type="regex"
    scope="topic"
    web="TestCases, %SYSTEMWEB%, Main, Sandbox"
    format="   * !$web.$topic"
    nosearch="on"
}%

  • Main.DefaultWebStatistics
  • Main.TestWebHome
  • Main.WebHome
  • Main.WebPreferences
  • Main.WebStatistics
Number of topics: 5
  • System.DefaultWebStatistics
  • System.WebHome
  • System.WebPreferences
Number of topics: 3

-- CrawfordCurrie - 27 Apr 2010

this turns out to be a tmpl error - when I removed the SPLIT-REPEAT rubbish, I omitted the \n from the end of both the SEARCH:searched and SEARCH:count DEF's.

I'm adding unit tests to both 1.0 branch&trunk so its easier to debug.

however, this appears to not be the entire story wrt the SemiAuto testcase (opening a new bug for that issue.

-- SvenDowideit - 30 Apr 2010

 

ItemTemplate edit

Summary search count and search summary are missing linefeeds causing formatting errors
ReportedBy CrawfordCurrie
Codebase trunk
SVN Range
AppliesTo Engine
Component
Priority Urgent
CurrentState Closed
WaitingFor
Checkins distro:42d36c0ad0ec distro:27fef26d266d
TargetRelease minor
ReleasedIn 1.1.0
Topic revision: r6 - 30 Apr 2010, SvenDowideit
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