Commit graph

62 commits

Author SHA1 Message Date
Kaushal Modi
f091b5a0ee
xmltree: Make indentation consistent with any num of children nodes (#13482)
Ref: https://forum.nim-lang.org/t/5972
2020-02-26 11:41:44 +01:00
Andreas Rumpf
60d64d1aef use system.move instead of system.shallowCopy if the GC mode requires it 2019-10-04 09:48:45 +02:00
narimiran
0ca9cc7419 [backport] run nimpretty on web stuff 2019-09-30 13:58:11 +02:00
sschwarzer
c9c28bf85e Update documentation on xmltree.items/mitems (#11930)
* 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".
2019-08-12 11:12:22 +02:00
Zestyr
bab83c4d8b Fix typo in xmltree docs [ci skip] 2019-06-27 20:44:42 +02:00
narimiran
2b0ea6b2ae xmltree: use code-block for arch-dependent tests 2019-05-27 21:32:12 +02:00
Andreas Rumpf
49e686ab4e fixes #1286; object case transitions are now sound 2019-05-27 21:29:02 +02:00
Miran
44cc5f6360 fix #8329, allow case insensitive xmltree.findAll (#11305) 2019-05-23 00:14:28 +02:00
Miran
6a5c74722e add xmltree.clear, fixes #3797 (#10711)
* add `xmltree.clear`, fixes #3797
* use `setLen`
2019-02-20 08:41:34 +01:00
Emery Hemingway
d1e3f58afc Use standard XML escaping 2019-02-13 23:30:14 +01:00
narimiran
ce5e8b93e2 better docs: xmltree 2019-01-24 00:35:37 +01:00
Miran
27e4825c62 [cleanup] remove xmldom and xmldomparser (#9234) 2018-10-09 20:58:56 +02:00
Andreas Rumpf
f2263cd129 make tests green again 2018-08-18 18:52:39 +02:00
Dominik Picheta
85b7d8fcc4 Rstgen/xml tree fixes (#7823)
* 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.
2018-05-23 16:28:53 +02:00
Araq
bbb0fd4eb7 remove deprecated stuff from the stdlib; introduce better deprecation warnings 2018-05-05 21:45:07 +02:00
Yuriy Glukhov
9955ee0a9b Fixes #7738 2018-05-03 18:15:31 +03:00
Andreas Rumpf
8ce9e43434 xmltree: remove usage of deprecated callsite() 2018-04-24 09:34:29 +02:00
Arne Döring
000b8afd26 Remove expr/stmt (#5857) 2017-07-25 09:28:23 +02:00
Dmitry Polienko
ff69656f80 Clean up (as suggested by @Araq) 2016-12-01 09:14:14 +07:00
Dmitry Polienko
6bd86f7543 Rewrite xmltools.innerText
Make it recursive, define for node types other than xnElement
2016-11-30 10:38:22 +07:00
Dmitry Polienko
8c9e2d7a43 xmltree: separate escaping for attributes 2016-09-05 15:43:44 +07:00
Araq
8be9e46403 udpated the compiler and tester to use getOrDefault 2015-10-13 14:10:33 +02:00
Araq
2fda95a4d6 added getOrDefault; bootstrapping works again 2015-10-13 03:03:05 +02:00
Araq
d8b0edc323 Merge branch 'mget' of https://github.com/def-/Nim into def--mget
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
2015-10-13 00:22:27 +02:00
sergey.anufriev
64737c8496 added proc to change an element tag and proc to insert xmlnode child 2015-09-26 10:09:07 +06:00
Andrey Sobolev
a534434056 allow to delete xmlnode childs 2015-09-07 21:19:52 +06:00
Andrey Sobolev
f405876b35 add text modification proc 2015-09-07 12:25:53 +06:00
Araq
0f2a37cf1b fixes #3282 2015-09-05 11:34:36 +02:00
Bruce Doan
ae3fc71462 Remove dead code in findAll proc 2015-05-26 00:02:59 +07:00
Oleh Prypin
a8c3c2ef0d Fix a test in xmltree 2015-04-21 14:39:34 +03:00
def
63f9385327 Rename mget to []
- 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
2015-03-31 00:32:39 +02:00
def
fd4e629905 Rename PNimrodNode to NimNode 2015-03-17 17:50:32 +01:00
def
46cf40c40d Add mitems and mpairs where it makes sense 2015-01-28 02:31:26 +01:00
def
2a7a5a69d0 GitHub link fixes: nim-code -> nim-lang 2015-01-15 03:26:59 +01:00
Araq
9d9c3fe121 merged things from devel 2014-09-12 01:37:48 +02:00
Erwan Ameil
05c1fb060f Escape ' and / when using escape in xmltree 2014-08-30 22:21:38 +02:00
Araq
4523b29d7a Nimrod renamed to Nim 2014-08-28 09:59:26 +02:00
Araq
d05df2173b Nimrod renamed to Nim 2014-08-28 09:50:51 +02:00
Araq
12d2a37519 more modules updated 2014-08-28 01:39:45 +02:00
Araq
11b6958755 big rename 2014-08-27 23:42:51 +02:00
Araq
2f43fdb837 renamefest 2014-08-23 01:43:49 +02:00
Grzegorz Adam Hankiewicz
64cf8d3893 Fixes xmltree <> macro docstring. 2013-08-22 23:01:15 +02:00
Grzegorz Adam Hankiewicz
55bcd0ba1e Adds findAll() convenience procs to xmltree. 2013-07-20 00:06:23 +02:00
Grzegorz Adam Hankiewicz
e7be3d873f Notes kind() getter is used to read TXmlNode.k field. 2013-07-19 23:25:22 +02:00
Araq
a674c039fb fixed a long standing xml parser bug; html parser bugfixes + speed improvements 2013-06-27 01:04:56 +02:00
Dominik Picheta
37b5be0133 Fixes #428 2013-05-11 20:30:46 +01:00
Dominik Picheta
b76ee0d9e1 Fixed bug with xmltree.attrs when attributes have not been initialised
yet.
2013-03-23 20:09:24 +00:00
Grzegorz Adam Hankiewicz
72a3e21f28 Removes executable bit for text files. 2013-03-16 23:53:07 +01:00
Araq
b56df72a32 made tests green again 2012-08-31 00:00:14 +02:00
Araq
b4844a189d parameter passing works the same for macros and templates; use callsite magic to access the invokation AST 2012-08-28 22:15:29 +02:00