8000 Vale on/off comments do not work on titles in RST · Issue #340 · errata-ai/vale · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Vale on/off comments do not work on titles in RST #340
Open
@mxsasha

Description

@mxsasha

This RST:

.. vale off

this text should be fine
------------------------

.. vale on

with a style that forbids the word "text", still generates an error:

 3:6  error  Use 'words' instead of 'text'  example-styles.example 

In my understanding, no error should be raised in this case.

With the exact same setup, this file (correctly) does not generate an error.

.. vale off

this text should be fine

.. vale on

Tested with .vale.ini as:

[*.{md,rst,txt,json}]
BasedOnStyles = example-styles

and the only style in example-styles being:

extends: substitution
message: Use '%s' instead of '%s'
level: error
swap:
  text: words

Seen on Mac OS 11.2.1, vale 2.9.1 installed through homebrew. It's a bit too complicated (and I don't know Go) to debug further on my own.

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

      0