Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Improved wording.
  • Loading branch information
felixfontein committed Dec 28, 2015
1 parent 52c64ec commit 93f464f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nikola/shortcodes.py
Expand Up @@ -162,7 +162,7 @@ def _parse_string(data, start, stop_at_equals=False, must_have_content=False):
end, value = _parse_unquoted_string(data, start, stop_at_equals)
has_content = len(value) > 0
if must_have_content and not has_content:
raise ParsingError("String starting at {0} must have non-trivial length!".format(_format_position(data, start)))
raise ParsingError("String starting at {0} must be non-empty!".format(_format_position(data, start)))

next_is_equals = False
if stop_at_equals and end + 1 < len(data):
Expand Down

0 comments on commit 93f464f

Please sign in to comment.