Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[asciidoc] widen admissible terms in definition list #169

Merged
merged 2 commits into from
Jan 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ __ __/ _ \ | ___| / /_
\_/ \___(_)____/ \___/ (not released yet)

AsciiDoc:
* Introduce option tablecells to process cells in tables.

* Introduce option tablecells to process cells in tables. (GitHub's #166)
* widen accepted characters in the term part of definition list
(GitHub's #169)
=======================================================================
___ ____ ____
__ __/ _ \ | ___| ___|
Expand Down
2 changes: 1 addition & 1 deletion lib/Locale/Po4a/AsciiDoc.pm
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ sub parse {
undef $self->{bullet};
undef $self->{indent};
} elsif (not defined $self->{verbatim} and
($line =~ m/^(\s*)([*_+`'#[:alnum:]].*)((?:::|;;|\?\?|:-)(?: *\\)?)$/)) {
($line =~ m/^(\s*)([-%~\$[*_+`'#<>[:alnum:]\\"(].*)((?:::|;;|\?\?|:-)(?: *\\)?)$/)) {
my $indent = $1;
my $label = $2;
my $labelend = $3;
Expand Down
28 changes: 28 additions & 0 deletions t/t-03-asciidoc/Lists.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,34 @@ Dolor::
In;;
Dictum mauris in urna.

<pathspec>...::
Files to add content from. Fileglobs (e.g. `*.c`) can
be given to add all matching files.

-n::
--dry-run::
Don't actually add the file(s), just show if they exist and/or will
be ignored.

\--::
This option can be used to separate command-line options from
the list of files, (useful when filenames might be mistaken
for command-line options).

[<refname>...]::
A list of references used to limit the references reported as
available.

$(prefix)/etc/gitconfig::
System-wide configuration file.

~/.gitconfig::
User-specific configuration file. Also called "global"
configuration file.

%G::
Git directory name

Horizontal Labeled Lists
------------------------

Expand Down
25 changes: 25 additions & 0 deletions t/t-03-asciidoc/Lists.out
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,31 @@ Dolor::
In;;
Dictum mauris in urna.

<pathspec>...::
Files to add content from. Fileglobs (e.g. `*.c`) can be given to add all
matching files.

-n::
--dry-run::
Don't actually add the file(s), just show if they exist and/or will be
ignored.

\--::
This option can be used to separate command-line options from the list of
files, (useful when filenames might be mistaken for command-line options).

[<refname>...]::
A list of references used to limit the references reported as available.

$(prefix)/etc/gitconfig::
System-wide configuration file.

~/.gitconfig::
User-specific configuration file. Also called "global" configuration file.

%G::
Git directory name

Horizontal Labeled Lists
------------------------

Expand Down
Loading