Tags:
create new tag
view all tags

SID-00792: Search within a bullet list

Status: Answered Answered TWiki version: 4.2.4 Perl version: Newest
Category: CategoryRendering Server OS: Linux (don't know the specs) Last update: 16 years ago

Is there anyway to ensure that a %SEARCH...% function lists all the hits in the same line within a bullet list? See the example below

What I want:

  • hit1 hit2 hit3 etc....

What I get

  • hit1

hit2 hit 3 etc...

aka the search function breaks the bullet list.

If there is already a solution I apologize for not finding it.

-- HenroRitchie - 2010-03-23

Discussion and Answer

According to VarSEARCH, you can use separator="..." to set the separator between search hits (the default is "$n" for newline).

If that doesn't work for you, can you please post your SEARCH string here.

-- SeanCMorgan - 2010-03-23

Use separator=" " (with space) to separate search hits with spaces, and newline=" " to separate newlines within one search hit.

-- PeterThoeny - 2010-03-23

Thanks for the help - i've tried using die space separator but it still does not work. See the search string below:

I purposefully left out the leading % in the search string - otherwise it will render the string. If you put in the % in, you will see the same problem I am experiencing repeat in this topic. The search string will find two hits, and it will put the second hit outside the bullet list.

Here is what I want to do, and maybe there is a better way of doing it; We use the bug tracker system in TWiki to log issues. I included a formfield in the twiki form where I can add the "involved parties" (other people that's also working on the issue). The involved parties are selected with tick boxes, and the list is generated with a search function.

Once the topic is saved, the full twiki names of the person that logged the bug, and the "involved parties" appear in the topic.

I added the search listed above to the mail notify topic. The plan was to search the topics in the webs where the user name appear and list them here so that the mail notify can email the topics in news letter format to the person that logged the bug and the involved parties.

The subscribe plugin can work, but it doesn't work on my TWiki site - and I think my hosting company is the part of the problem. In any case I would like to be able to let a person that logs the bug subscribe other users to that topic - and as far as I know that is not the case with the subscribe plugin.

Hope this helps.

-- HenroRitchie - 2010-03-24

Let's test this using a recent changes list in a bullet:

As you can see this works.

-- PeterThoeny - 2010-03-24

OK, now I feel very stupid, I spelled separator wrong That's why it didn't work. Thanks for all the help!

-- HenroRitchie - 2010-03-24

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Answered
Title Search within a bullet list
SupportCategory CategoryRendering
TWiki version 4.2.4
Server OS Linux (don't know the specs)
Web server Don't know the specs
Perl version Newest
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2010-03-24 - HenroRitchie
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.