texinfo-commits
[Top][All Lists]
Advanced

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

[8116] remove unexecuted code


From: gavinsmith0123
Subject: [8116] remove unexecuted code
Date: Sat, 25 Aug 2018 11:36:00 -0400 (EDT)

Revision: 8116
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=8116
Author:   gavin
Date:     2018-08-25 11:35:58 -0400 (Sat, 25 Aug 2018)
Log Message:
-----------
remove unexecuted code

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/tp/Texinfo/Convert/TexinfoXML.pm

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2018-08-25 14:29:53 UTC (rev 8115)
+++ trunk/ChangeLog     2018-08-25 15:35:58 UTC (rev 8116)
@@ -1,5 +1,13 @@
 2018-08-25  Gavin Smith  <address@hidden>
 
+       * tp/Texinfo/Convert/TexinfoXML.pm (_convert): Remove 
+       conditional block that checks for a raw formatting command (e.g.
+       @html if --html is given to texi2any) that is being expanded.  
+       It appears that this code is never executed as an earlier clause
+       of the "if" statement is executed if this format is being expanded.
+
+2018-08-25  Gavin Smith  <address@hidden>
+
        * tp/Texinfo/Parser.pm (_parse_texi) <CLOSED raw>: Do
        not add a 'command' extra value on the 'empty_line_after_command'.
 

Modified: trunk/tp/Texinfo/Convert/TexinfoXML.pm
===================================================================
--- trunk/tp/Texinfo/Convert/TexinfoXML.pm      2018-08-25 14:29:53 UTC (rev 
8115)
+++ trunk/tp/Texinfo/Convert/TexinfoXML.pm      2018-08-25 15:35:58 UTC (rev 
8116)
@@ -1,6 +1,6 @@
 # TexinfoXML.pm: output tree as Texinfo XML.
 #
-# Copyright 2011, 2012, 2013, 2016 Free Software Foundation, Inc.
+# Copyright 2011, 2012, 2013, 2016, 2017, 2018 Free Software Foundation, Inc.
 # 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -730,15 +730,6 @@
       } else {
         return $root->{'text'};
       }
-    } elsif ($root->{'type'} 
-             and $root->{'type'} eq 'empty_line_after_command'
-             and $root->{'extra'}->{'command'}) {
-      my $command_name = $root->{'extra'}->{'command'}->{'cmdname'};
-      
-      if ($Texinfo::Common::format_raw_commands{$command_name} and 
-          $self->{'expanded_formats_hash'}->{$command_name}) {
-        return '';
-      }
     }
     $result = $self->format_text($root);
     return $result;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]