[gnome-commander] advrename: do not expand '%D', '%n' and '%t' format controls (instead of previous convertion into si



commit e57da4368535b26fa1cdb7a19bd5c7409ffa0fb7
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Sat Oct 24 15:17:51 2009 +0200

    advrename: do not expand '%D', '%n' and '%t' format controls (instead of previous convertion into single '%')

 doc/C/gnome-commander.xml        |    2 +-
 src/gnome-cmd-advrename-lexer.ll |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/doc/C/gnome-commander.xml b/doc/C/gnome-commander.xml
index 1a0851e..b1e58e7 100644
--- a/doc/C/gnome-commander.xml
+++ b/doc/C/gnome-commander.xml
@@ -979,7 +979,7 @@
                         (see below for the detailed list). Additionally
                         <link linkend="gnome-commander-advanced-rename-strftime">strftime() format controls</link>
                         are also accepted - except for "%D", "%n" and "%t" for obvious reasons.
-                        If found, they are converted into single "%".</para>
+                        If found, they are left intact.</para>
               </listitem>
           </varlistentry>
           <varlistentry>
diff --git a/src/gnome-cmd-advrename-lexer.ll b/src/gnome-cmd-advrename-lexer.ll
index ac08f1b..61db48b 100644
--- a/src/gnome-cmd-advrename-lexer.ll
+++ b/src/gnome-cmd-advrename-lexer.ll
@@ -291,7 +291,7 @@ tag_name    {ape}|{audio}|{doc}|{exif}|{file}|{flac}|{id3}|{image}|{iptc}|{pdf}|
 
 \$\$                            echo("$",1);
 
-%[Dnt]                          yytext[1] = '%';  ECHO;
+%[Dnt]                          echo("%",1);  ECHO;                        // substitute %[Dnt] with %%[Dnt]
 
 [^%$]+                          ECHO;                                      // concatenate consecutive non-[%$] chars into single TEXT chunk
 %%



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]