Skip Menu |

This queue is for tickets about the Dist-Zilla-Plugin-InsertCodeResult CPAN distribution.

Report information
The Basics
Id: 104215
Status: resolved
Priority: 0/
Queue: Dist-Zilla-Plugin-InsertCodeResult

People
Owner: Nobody in particular
Requestors: VDB [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.03
Fixed in: (no value)



Subject: Non-verbatim paragraphs.
I am trying to use InsertCodeResult plugin and found it a bit inconvenient. It always produces verbatim paragraph by adding a space into beginning of every line of the result. This makes impossible to generate non-verbatim paragraph. It would be more universal approach to generate non-verbatim paragraph, because user can easily generate either verbatim or non-verbatim paragraphs by adding a space, e. g.: # CODE: "non-verbatim paragraph" # CODE: " verbatim paragraph" or: # CODE: $res = "..."; $res =~ s/^/ /gm;
On Mon May 04 18:56:34 2015, VDB wrote: Show quoted text
> I am trying to use InsertCodeResult plugin and found it a bit > inconvenient. It always produces verbatim paragraph by adding a space > into beginning of every line of the result. This makes impossible to > generate non-verbatim paragraph. > > It would be more universal approach to generate non-verbatim > paragraph, because user can easily generate either verbatim or non- > verbatim paragraphs by adding a space, e. g.: > > # CODE: "non-verbatim paragraph" > > # CODE: " verbatim paragraph" > > or: > > # CODE: $res = "..."; $res =~ s/^/ /gm;
I've added an option 'make_verbatim' (like in DZP:InsertCommandOutput) which you can set to 0 if you don't want the plugin to make the paragraph verbatim. Released 0.04. I'm still hesitant about adding this option on a per-directive basis though, mainly because I haven't decided about the syntax. Regards, perlancar