Ben Kurtovic
699d0638f6
Fix param blanking logic by Template.remove() ( #109 )
9年前
Ben Kurtovic
4c2540060b
Fix preserve_spacing behavior in Template.add() on hidden keys ( #109 )
9年前
Ben Kurtovic
e71e7b4ece
Update copyright years for 2015; fix whitespace in docs.
9年前
Ben Kurtovic
504b8bace0
Add test code for a missing branch of Tag.wiki_markup.setter; cleanup.
10年前
Ben Kurtovic
810c24e123
Don't check quotes when attributes are built from tokens.
10年前
David Winegar
1b3e3c3657
Change wiki tags to use style separators
For wiki syntax tables, add `wiki_style_separator` as an attribute
for the Tag node. Also reorder `closing_wiki_markup` property and tests
to match its place in the constructor.
10年前
David Winegar
7bbeb6899a
Fix ordering of tag representation
Self-closing wiki syntax tags have incorrectly ordered wiki syntax
and padding, fixed the ordering.
10年前
David Winegar
ec08001871
Tables and rows now use newline as padding
Tables and rows use newlines as padding, partly because these characters
are pretty important to the integrity of the table. They might need
to be in the preceding whitespace of inner tags instead as padding after,
not sure.
10年前
David Winegar
d356a570b3
Added closing_wiki_markup support to Tag node
Added support for allowing different wiki syntax for replacing the opening
and closing tags. Added for table support.
10年前
Ben Kurtovic
87e0079512
Take proper advantage of Sphinx's default domains.
10年前
Ben Kurtovic
b997e4cd71
Support attributes quoted with '; add required quotes in value setter.
10年前
Ben Kurtovic
8bc7ea669d
Improve test coverage; fix some node-related bugs.
* Parameters with non-integer keys can no longer be created with
showkey=False, nor have the value of this attribute be set to False
later.
* Calling Template.remove() with a Parameter object that is not part of
the template now raises ValueError instead of doing nothing.
* Added tests for HTMLEntity._unichr() being called with out-of-range
codepoints.
* Added tests for Tag.__children__() and Tag.__showtree__() involving
attributes that have no values.
10年前
Ben Kurtovic
08cafc0576
Raise ParserError for internal problems. Improve coverage. Cleanup.
10年前
Ricordisamoa
9108d49d68
fix some typos: occurance → occurrence, parasable → parsable
10年前
Ben Kurtovic
e5f17eea00
Update copyright notices for 2014.
10年前
Ben Kurtovic
45aec31629
Move range/xrange compatibility code to compat.py.
10年前
Ben Kurtovic
99d433c2d5
Change protocol for Node iteration; rename __iternodes__ to __children__.
10年前
Ben Kurtovic
066049b46a
Update email address.
11年前
Ben Kurtovic
cf90557229
Template.has() should be passed ignore_empty=False by default.
**Breaking change**; closes #51 .
11年前
Ben Kurtovic
40b92358b4
Simplify parameter removal.
11年前
Ben Kurtovic
f2442906db
Implement support for Template.remove() taking Parameters as arguments.
11年前
Ben Kurtovic
bdfd0632b3
A couple very minor nitpicks.
11年前
Ben Kurtovic
d1a7d25220
Set right context for ExternalLink.url; Wikicode.filter_external_links()
11年前
Ben Kurtovic
67f1762aa4
Doc updates, and allow passing a starting context to tokenize().
11年前
Ben Kurtovic
d91c65dc1f
TestExternalLink; some fixes in ExternalLink.
11年前
Ben Kurtovic
5e6e5b6301
tag_defs.py -> definitions.py; more outline stuff
11年前
Ben Kurtovic
8fe8b1fef5
Implement ExternalLinks as tokens and in the builder.
11年前
Ben Kurtovic
0886b6fbf6
Add ExternalLink Node type.
11年前
Ben Kurtovic
800bd20e39
Implement Tag.has(), Tag.get(), Tag.add(), and Tag.remove() ( closes #11 ).
11年前
Ben Kurtovic
9280cb16fe
Fix behavior with quoted attrs and spaces before the =.
11年前
Ben Kurtovic
53c26589ee
Some node fixes; attributes with empty values now display correctly.
11年前
Ben Kurtovic
a7dda77474
Template.has_param() -> Template.has()
11年前
Ben Kurtovic
7a4b1625d3
Strip self-closing tags correctly.
11年前
Ben Kurtovic
4f52887e17
wiki_markup stores the markup itself instead of a bool
11年前
Ben Kurtovic
de6d5074fa
Tag.showtag -> Tag.wiki_markup
11年前
Ben Kurtovic
2c4bff1d68
Start test_tag; some fixes for Tags.
11年前
Ben Kurtovic
b8752a5c15
test_attribute; better setters for padding attributes
11年前
Ben Kurtovic
77c4df701b
Fix assorted bugs in the Tag node.
11年前
Ben Kurtovic
bee74c0ced
Some doc updates.
11年前
Ben Kurtovic
7d1a28a249
Support single and single-only tags like <br>.
11年前
Ben Kurtovic
81e8fdd682
Give Attributes more attributes for padding data.
11年前
Ben Kurtovic
6450814729
Remove 'type' attribute from tags; rework tag definitions.
11年前
Ben Kurtovic
3fb8f3214c
Fix StringMixIn.maketrans() on Py3k.
- Make a test in Py3k actually use StringMixIn instead of str.
- Minor cosmetic fix.
11年前
Ben Kurtovic
61fc5b5eab
Fix handling of self-closing tags ( closes #31 )
11年前
Ben Kurtovic
81849013bc
Finishing tests for Templates; some fixes.
11年前
Ben Kurtovic
2ca3b2805e
Implement 'before' parameter for Template.add() ( closes #21 )
11年前
Ben Kurtovic
b46c98b012
Clean up template.add(); add a before param but do not implement yet.
11年前
Ben Kurtovic
786d619274
Drop force_no_field in template.remove(); implement test_remove().
- Also add tests for spacing in param names.
11年前
Ben Kurtovic
6a385b3921
TestParameter and a fair chunk of TestTemplate.
11年前
Ben Kurtovic
6bf8cfd2ad
Fix tests for Python 3.
11年前