Skip to content

Commit

Permalink
Allow 'overlong' separated uncertainties (fixes #506)
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwright committed Jul 20, 2021
1 parent 4c65f8e commit 2ab37de
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 17 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to
### Fixed
- Print degree symbol if `fontspec` package is loaded with
`no-math` option (issue #505)
- Handling of 'over-long' separated uncertainties (issue #506)
- Symbol for arcs in text mode (issue #507)

## [v3.0.20]
Expand Down
13 changes: 3 additions & 10 deletions siunitx-number.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -906,16 +906,9 @@
\cs_new_protected:Npn
\@@_parse_combine_uncert_auxi:nnnnnnnn #1#2#3#4#5#6#7#8
{
\int_compare:nNnTF { \tl_count:n {#6} } > { \tl_count:n {#2} }
{
\tl_clear:N \l_@@_parsed_tl
\tl_clear:N \l_@@_flex_tl
}
{
\@@_parse_combine_uncert_auxii:fnnnn
{ \int_eval:n { \tl_count:n {#3} - \tl_count:n {#7} } }
{#2} {#3} {#6} {#7}
}
\@@_parse_combine_uncert_auxii:fnnnn
{ \int_eval:n { \tl_count:n {#3} - \tl_count:n {#7} } }
{#2} {#3} {#6} {#7}
}
\cs_new_protected:Npn
\@@_parse_combine_uncert_auxii:nnnnn #1
Expand Down
8 changes: 1 addition & 7 deletions testfiles/siunitx-number.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -1990,13 +1990,7 @@ l. ... }
============================================================
TEST 58: Overlong uncertainty
============================================================
! Package siunitx Error: Invalid number '123+-4567'.
For immediate help type H <return>.
...
l. ... }
The input '123+-4567' could not be parsed as a number following the format
defined in module documentation.
> \l_tmpa_tl=.
> \l_tmpa_tl=123(4567).
<recently read> }
l. ... }
============================================================
Expand Down

0 comments on commit 2ab37de

Please sign in to comment.