Skip to content

Vale rule for long lines inside <screen/> #974

@tbazant

Description

@tbazant

Hi
i'm constructing a new rule that will detect lines inside Docbook's element that are longer than 80 characters.

I've successfully detected the starting version <screen>some long sentence and ending version some long sentence</screen> and one-liner <screen>some long sentence</screen>.

But if the content of the <screen/> element is multiline text, i dont know how to construct the rule, help much appreciated.

Here is the rule file https://github.com/openSUSE/suse-vale-styleguide/blob/e83b27903567c8cc69fc6a73617b05b0f7603000/docbook/LongScreen.yml

Here is the test file https://github.com/openSUSE/suse-vale-styleguide/blob/e83b27903567c8cc69fc6a73617b05b0f7603000/tests/LongScreen-bad.xml

The middle line of the following example should be matched as well

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions