summary refs log tree commit diff stats
path: root/lib/pure/xmltree.nim
Commit message (Collapse)AuthorAgeFilesLines
* Fix: #21541. Add support for xnVerbatimText (#21542)Mark Leyva2023-03-201-4/+4
| | | | to text and text= procs. Remove unnecessary LF for xnVerbatimText in $ proc.
* `std/xmltree` Add the type of the node when the assertion fails (#21383)Jake Leahy2023-02-171-22/+30
| | | | | Print the type of the node when the assertion fails This way the user actually knows what the type was instead of just knowing it failed
* fixes #21290; deindent if the last same level is a text node (#21293)ringabout2023-01-241-16/+21
| | | | | * fixes #21290; deindent if the last same level is a text node * add one more test
* Feature/xmltree additions (#20988)Michael Voronin2022-12-221-3/+150
| | | | | | | * [change] add/insert/delete family of xmltree expanded with several variations. Added replace methods family * [change] Lifted child limitations on insert methods (consulted with @araq) * [tests] add/insert/replace/delete of xmltree XmlNodes tests added
* Markdown indented code blocks (#20473)Andrey Makarov2022-10-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | * Implement Markdown indented code blocks Additional indentation of 4 spaces makes a block an "indented code block" (monospaced text without syntax highlighting). Also `::` RST syntax for code blocks is disabled. So instead of ```rst see:: Some code ``` the code block should be written as ```markdown see: Some code ``` * Migrate RST literal blocks :: to Markdown's ones
* bootstrap the compiler with nimPreviewSlimSystem (#20176)ringabout2022-08-091-0/+4
| | | | | * bootstrap the compiler with nimPreviewSlimSystem * threads
* RST: improve simple tables (#19859)Andrey Makarov2022-06-041-3/+3
| | | | | | | * RST: improve simple tables * nim 1.0 gotchas * Still allow legacy boundaries like `----`
* add sink and lent annotations for xmltree and streams (#18037)Antonis Geralis2021-05-181-15/+15
|
* remove {.compileTime.} for procs with NimNode: redundant because of ↵Timothee Cour2021-03-231-1/+1
| | | | tfTriggersCompileTime (#17463)
* correct errors in xmltree docs (#16104)flywind2020-11-231-81/+72
|
* xmltree minor improvement (#16085)flywind2020-11-211-87/+3
|
* closureiters: fixes #15243 (#15454) [backport:1.2]Andreas Rumpf2020-10-021-2/+2
| | | | * fixes #15243 [backport:1.2]
* Remove `noSideEffect` pragmas (#15143)sschwarzer2020-08-011-1/+1
| | | | | | These don't seem to make sense for the purpose of the procs and lead to errors when the `--experimental:strictFuncs` feature is enabled. See also https://github.com/nim-lang/Nim/issues/15142
* move since from inclrtl to std/private/since (#14188)hlaaftana2020-05-021-2/+2
| | | | * move since from inclrtl to std/private/since * move since import in system below for HCR
* fix #14064 xmltree should allow create text node with raw text(non-es… ↵Bung2020-04-221-1/+11
| | | | | | | | | | | | | (#14070) * fix #14064 xmltree should allow create text node with raw text(non-escaped) eg. html style element's text * change xnRawText to VerbatimText,newRawText to newVerbatimText ,add since anotation * change changelog_1_2_0.md latest date * move change log Co-authored-by: bung87 <crc32@qq.com>
* xmltree: Make indentation consistent with any num of children nodes (#13482)Kaushal Modi2020-02-261-34/+135
| | | Ref: https://forum.nim-lang.org/t/5972
* use system.move instead of system.shallowCopy if the GC mode requires itAndreas Rumpf2019-10-041-2/+8
|
* [backport] run nimpretty on web stuffnarimiran2019-09-301-13/+15
|
* Update documentation on `xmltree.items`/`mitems` (#11930)sschwarzer2019-08-121-2/+2
| | | | | | | | | | * Update documentation on `xmltree.items`/`mitems` So far the documentation on `items` and `mitems` wasn't explicit about whether the iteration recurses down the node's children or not. I assumed recursion, which was wrong. * Improve wording in comment Use the more common and shorter word "direct".
* Fix typo in xmltree docs [ci skip]Zestyr2019-06-271-3/+3
|
* xmltree: use code-block for arch-dependent testsnarimiran2019-05-271-38/+44
|
* fixes #1286; object case transitions are now soundAndreas Rumpf2019-05-271-2/+1
|
* fix #8329, allow case insensitive xmltree.findAll (#11305)Miran2019-05-231-11/+23
|
* add `xmltree.clear`, fixes #3797 (#10711)Miran2019-02-201-0/+29
| | | | | * add `xmltree.clear`, fixes #3797 * use `setLen`
* Use standard XML escapingEmery Hemingway2019-02-131-4/+2
|
* better docs: xmltreenarimiran2019-01-241-117/+426
|
* [cleanup] remove `xmldom` and `xmldomparser` (#9234)Miran2018-10-091-1/+1
|
* make tests green againAndreas Rumpf2018-08-181-1/+0
|
* Rstgen/xml tree fixes (#7823)Dominik Picheta2018-05-231-10/+16
| | | | | | | | | | | | | * Don't prefix lang names with "lang" in rstgen. * Implements ability to render xmltree w/o \n. Fixes <> for `data-*` attrs. * Various rstgen fixes. * Fixes security vulnerabilities due to not escaping some code. * Adds <video> support and improve `.. image:: ` directive. * Adds comment as requested.
* remove deprecated stuff from the stdlib; introduce better deprecation warningsAraq2018-05-051-8/+0
|
* Fixes #7738Yuriy Glukhov2018-05-031-2/+2
|
* xmltree: remove usage of deprecated callsite()Andreas Rumpf2018-04-241-6/+3
|
* Remove expr/stmt (#5857)Arne Döring2017-07-251-1/+1
|
* Clean up (as suggested by @Araq)Dmitry Polienko2016-12-011-6/+5
|
* Rewrite xmltools.innerTextDmitry Polienko2016-11-301-7/+19
| | | | Make it recursive, define for node types other than xnElement
* xmltree: separate escaping for attributesDmitry Polienko2016-09-051-3/+14
|
* udpated the compiler and tester to use getOrDefaultAraq2015-10-131-1/+1
|
* added getOrDefault; bootstrapping works againAraq2015-10-131-1/+1
|
* Merge branch 'mget' of https://github.com/def-/Nim into def--mgetAraq2015-10-131-2/+7
|\ | | | | | | | | | | | | | | | | | | Conflicts: lib/pure/collections/critbits.nim lib/pure/collections/tables.nim lib/pure/xmltree.nim lib/system/sets.nim tests/collections/ttables.nim tests/collections/ttablesref.nim
| * Rename mget to `[]`def2015-03-311-2/+7
| | | | | | | | | | | | | | | | | | - In sets, tables, strtabs, critbits, xmltree - This uses the new var parameter overloading - mget variants still exist, but are deprecated in favor of `[]` - Includes tests and fixed tests and usages of mget - The non-var `[]` now throws an exception instead of returning binary 0 or an empty string
* | added proc to change an element tag and proc to insert xmlnode childsergey.anufriev2015-09-261-0/+13
| |
* | allow to delete xmlnode childsAndrey Sobolev2015-09-071-0/+5
| |
* | add text modification procAndrey Sobolev2015-09-071-0/+6
| |
* | fixes #3282Araq2015-09-051-1/+1
| |
* | Remove dead code in findAll procBruce Doan2015-05-261-2/+1
| |
* | Fix a test in xmltreeOleh Prypin2015-04-211-1/+2
|/
* Rename PNimrodNode to NimNodedef2015-03-171-45/+45
|
* Add mitems and mpairs where it makes sensedef2015-01-281-0/+10
|
* GitHub link fixes: nim-code -> nim-langdef2015-01-151-4/+4
|
* merged things from develAraq2014-09-121-0/+4
|\