Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
textops: Fix bad subst_body() example
  • Loading branch information
liviuchircu committed Sep 3, 2019
1 parent 7646a9e commit 25f9070
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/textops/doc/textops_admin.xml
Expand Up @@ -500,7 +500,7 @@ if (subst_user('/(.*)3642$/$avp(user_prefix)\13642/')){$
<para>Meaning of the parameters is as follows:</para>
<itemizedlist>
<listitem>
<para><emphasis>'/re/repl/flags'</emphasis> - sed like regular
<para><emphasis>'/re/repl/flags'</emphasis> - sed like regular
expression. flags can be a combination of i (case insensitive),
g (global) or s (match newline don't treat it as end of line).
</para>
Expand All @@ -523,7 +523,8 @@ if (subst_user('/(.*)3642$/$avp(user_prefix)\13642/')){$
<title><function>subst_body</function> usage</title>
<programlisting format="linespecific">
...
if ( subst_body('/^o=(.*) /o=$fU ') ) {};
if (subst_body("/^o=([^ ]*) /o=$fU /"))
xlog("successfully prepared an "o" line update!\n");

...
</programlisting>
Expand Down

0 comments on commit 25f9070

Please sign in to comment.