Choose how to handle auto-insertion of terminal periods #105
Labels
accessibility
Meeting the guidelines
discuss
Point for discussion
documentation
Improve or add documentation
enhancement
New feature or request
should
MoSCoW priority
Milestone
Currently, a terminal period will be added to strings in the
blank_cells
andsource
columns of an a11ytable-class object if they're missing. For example:Some text
is converted toSome text.
, andSome text.
remains asSome text.
.The presence of hyperlinks (#47) complicates this.
[Some text]()
should become[Some text.]()
. We can detect the presence of a hyperlink in the string and take action if one is found. In this case, we can replace[^\.]\]\(
(anything but a period, followed by close-square bracket and open parenthesis) with\.\]\(
. What to do if the user provdes the stringHere is [some text]() to consider.
? It might convert toHere is [some text.]() to consider.
and ultimately to[Here is some text. to consider.]()
, which is just not right.Possible approaches:
As it stands, I think the approach to terminal periods is haphazard. I don't think they're checked on the cover anywhere; only in the
blank_cells
andsource
columns of an a11ytable. It should be consistent.The text was updated successfully, but these errors were encountered: