[valadoc] libvaladoc: Actually resolve "percnt;" to '%'
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [valadoc] libvaladoc: Actually resolve "percnt;" to '%'
- Date: Wed, 29 Nov 2017 13:13:40 +0000 (UTC)
commit defffe1cae44cc82ed4db6eae2902b11c51040aa
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Nov 29 14:09:33 2017 +0100
libvaladoc: Actually resolve "percnt;" to '%'
src/libvaladoc/markupreader.vala | 2 +-
tests/libvaladoc/markupreader.vala | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libvaladoc/markupreader.vala b/src/libvaladoc/markupreader.vala
index 9f24177..47e845e 100644
--- a/src/libvaladoc/markupreader.vala
+++ b/src/libvaladoc/markupreader.vala
@@ -288,7 +288,7 @@ public class Valadoc.MarkupReader : Object {
text_begin = current;
} else if (((string) next_pos).has_prefix ("percnt;")) {
content.append (((string) text_begin).substring (0, (int) (current -
text_begin)));
- content.append_c ('>');
+ content.append_c ('%');
current += 8;
text_begin = current;
} else {
diff --git a/tests/libvaladoc/markupreader.vala b/tests/libvaladoc/markupreader.vala
index d38b4d4..3681b7e 100644
--- a/tests/libvaladoc/markupreader.vala
+++ b/tests/libvaladoc/markupreader.vala
@@ -189,7 +189,7 @@ public static void positive_2 () {
token = reader.read_token (out begin, out end);
assert (token == MarkupTokenType.TEXT);
- assert (reader.content == "AA BB & \"' < > >");
+ assert (reader.content == "AA BB & \"' < > %");
assert (reader.name == null);
assert (reader.get_attributes ().size == 0);
assert (reporter.warnings == 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]