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

Fix regression of .Truncated evaluation in manual summaries #2989

Merged
merged 1 commit into from
Feb 19, 2017
Merged

Fix regression of .Truncated evaluation in manual summaries #2989

merged 1 commit into from
Feb 19, 2017

Commits on Feb 7, 2017

  1. hugolib: Fix regression of .Truncated evaluation in manual summaries

    This fixes the behavior of .Truncated that was introduced with commit
    bef496b which was later broken.  The
    desired behavior is that .Truncated would evaluate to false when there
    was nothing after the user defined summary marker.
    
    This also adds a simple unit test to ensure that this feature isn't
    broken again.  The check for content after the user defined summary
    marker is done on the raw content instead of the working copy because
    some of the markup renderers add elements after the marker, making it
    difficult to determine if there is actually any content.
    
    The behavior (evaluating to false when there is no content, just
    summary) is also now documented.
    socialhacker committed Feb 7, 2017
    Configuration menu
    Copy the full SHA
    05f1348 View commit details
    Browse the repository at this point in the history