Skip to content

Commit

Permalink
Merge pull request #2 from bexelbie/allow_empty_attribute_lists
Browse files Browse the repository at this point in the history
Allow empty AsciiDoc Attribute lists
  • Loading branch information
mquinson committed Sep 5, 2016
2 parents 38caaba + 3da2491 commit 86f79e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Locale/Po4a/AsciiDoc.pm
Expand Up @@ -773,6 +773,8 @@ sub split_attributelist {
| [^\W\d][-\w]*=\S+ # invalid, but accept it anyway
| "(?:[^"\\]++|\\.)*+" # quoted attribute
| (?:[^,\\]++|\\.)++ # unquoted attribute
| ^$ # Empty attribute list allowed
)(?:,\s*+)?/gx) {
print STDERR " -> $1\n" if $debug{split_attributelist};
push @attributes, $1;
Expand Down

0 comments on commit 86f79e5

Please sign in to comment.