Modify

Opened 2 years ago

Last modified 2 years ago

#10111 new enhancement

output with special characters (help or feature request)

Reported by: ctrudeau chr(64) arsensa.com Owned by: nmadura
Priority: normal Component: ShellExampleMacro
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description (last modified by rjollos)

Love the plug-in, helps my documentation a lot. I have run into the situation where the output of a command contains hits for the regexes. I took a quick look at the code and it doesn't look like there is a way of escaping it. If I missed something, drop me a line, if I'm right, this would be a nice feature.

For example:

{{{
#!ShellExample
$ git status
# On branch develop
# Changes to be committed:
#   (use "git reset HEAD <file>..." to unstage)
#
#       modified:   one
}}}

doesn't see the lines beginning with "#" as output. I tried putting spaces in, or using the "$$". Interestingly, prefixing it with "!" works but then the "!" symbols are included in the output. So, maybe the feature could be, "if starts with '!' and not '!!' treat as output -- but don't show the '!'. With '!!' process as normal for the rare case of a non-output line beginning with '!'.

Attachments (0)

Change History (1)

comment:2 Changed 2 years ago by rjollos

  • Description modified (diff)

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.