[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[7108] parsetexi add spaces element type
From: |
Gavin D. Smith |
Subject: |
[7108] parsetexi add spaces element type |
Date: |
Sat, 09 Apr 2016 11:58:44 +0000 |
Revision: 7108
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=7108
Author: gavin
Date: 2016-04-09 11:58:44 +0000 (Sat, 09 Apr 2016)
Log Message:
-----------
parsetexi add spaces element type
Modified Paths:
--------------
trunk/tp/parsetexi/def.c
trunk/tp/parsetexi/element_types.c
trunk/tp/parsetexi/element_types.h
trunk/tp/parsetexi/element_types.txt
Modified: trunk/tp/parsetexi/def.c
===================================================================
--- trunk/tp/parsetexi/def.c 2016-04-09 11:52:40 UTC (rev 7107)
+++ trunk/tp/parsetexi/def.c 2016-04-09 11:58:44 UTC (rev 7108)
@@ -95,7 +95,7 @@
{
/* Text is completely spaces. */
spaces = remove_from_contents (e, 0); // 2341
- //spaces->type = ET_spaces; // TODO: No such element type.
+ spaces->type = ET_spaces;
/* Remove a trailing newline. */
if (spaces->text.end > 0
@@ -149,8 +149,7 @@
space_len = strspn (text, whitespace_chars);
if (space_len > 0)
{
- //spaces = new_element (ET_spaces);
- spaces = new_element (ET_NONE);
+ spaces = new_element (ET_spaces);
spaces->parent_type = route_not_in_tree;
text_append_n (&spaces->text, text, space_len);
text += space_len;
Modified: trunk/tp/parsetexi/element_types.c
===================================================================
--- trunk/tp/parsetexi/element_types.c 2016-04-09 11:52:40 UTC (rev 7107)
+++ trunk/tp/parsetexi/element_types.c 2016-04-09 11:58:44 UTC (rev 7108)
@@ -19,6 +19,7 @@
"preamble_text",
"space_at_end_menu_node",
"after_description_line",
+"spaces",
"text_root",
"document_root",
"root_line",
Modified: trunk/tp/parsetexi/element_types.h
===================================================================
--- trunk/tp/parsetexi/element_types.h 2016-04-09 11:52:40 UTC (rev 7107)
+++ trunk/tp/parsetexi/element_types.h 2016-04-09 11:58:44 UTC (rev 7108)
@@ -20,6 +20,7 @@
ET_preamble_text,
ET_space_at_end_menu_node,
ET_after_description_line,
+ET_spaces,
ET_text_root,
ET_document_root,
ET_root_line,
Modified: trunk/tp/parsetexi/element_types.txt
===================================================================
--- trunk/tp/parsetexi/element_types.txt 2016-04-09 11:52:40 UTC (rev
7107)
+++ trunk/tp/parsetexi/element_types.txt 2016-04-09 11:58:44 UTC (rev
7108)
@@ -1,4 +1,4 @@
-# Copyright 2010, 2011, 2012, 2013, 2014, 2015
+# Copyright 2010, 2011, 2012, 2013, 2014, 2015, 2016
# Free Software Foundation, Inc.
#
# This file is part of GNU Texinfo.
@@ -39,6 +39,7 @@
preamble_text
space_at_end_menu_node
after_description_line
+spaces
# Other special types
text_root
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [7108] parsetexi add spaces element type,
Gavin D. Smith <=