Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changelog: https://github.com/lunarmodules/Penlight/blob/master/CHANGELOG.md#1120-2022-jan-10
1.12.0 (2022-Jan-10)
pl.text
the contents have moved topl.stringx
(removal later) #407pl.xml
, please switch to a more specialized library (removal later) #409utils.npairs
added. An iterator with a range that honours then
field #387xml.maptags
would hang if it encountered text-nodes #396text.dedent
didn't handle declining indents nor empty lines #402dir.getfiles
,dir.getdirectories
, anddir.getallfiles
now have the directory optional, as was already documented #405array2d.default_range
now also takes a spreadsheet range, which means also other functions now take a range. #404lapp
enums allow patterns magic characters #393text.wrap
andtext.fill
numerous fixes for handling whitespace, accented characters, honouring width, etc. #400text.wrap
andtext.fill
have a new parameter to forcefully break words longer than the width given. #400stringx.expandtabs
could error out on Lua 5.3+ #406pl
the module would not properly forward thenewindex
metamethod on the global table. #395utils.enum
added to create enums and prevent magic strings #408xml.new
added some sanity checks on input #397xml.xml_escape
andxml.xml_unescape
functions (previously private) #397xml.tostring
now also takes numeric indents (previously only strings) #397xml.walk
now detects recursion (errors out) #397xml.clone
now detects recursion (errors out) #397xml.compare
now detects recursion (errors out) #397xml.compare
text compares now work #397xml.compare
attribute order compares now only compare if both inputs provide an order #397xml.compare
child comparisons failing now report proper error #397