1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-12-24 01:42:10 +00:00

Remove trailing whitespace

courtesy of html-validate
This commit is contained in:
Rohan Kumar 2023-10-06 18:22:18 -07:00
parent b0d260e82b
commit 1a35c861df
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
4 changed files with 43 additions and 9 deletions

View file

@ -50,14 +50,14 @@ $ tool --help
║ ║
╚═════════════════════════════════════════════════════════╝
Usage: tool <command> [options]
Usage: tool <command> [options]
Commands:
tool init [directory] creates a new project
tool manage allows you to manage an existing project
tool manage allows you to manage an existing project
Options:
--help Show help [boolean]
--version Show version number [boolean]
--version Show version number [boolean]
```
{{</codefigure>}}

View file

@ -1540,7 +1540,7 @@ A workaround is to use the "text" ARIA role to remove the semantics of elements.
```figure {str1="text" str2="br"}
<h1>
<span role="text">Digital accessibility, <br>
for everyone.
for everyone.
</span>
</h1>
```

View file

@ -87,7 +87,7 @@
{{ $webmention.source | strings.TrimPrefix "https://" | strings.TrimPrefix "www." | strings.TrimRight "/" | truncate 35 -}}
{{ end -}}
<a class="u-url" itemprop="url" href="{{ $src }}" rel="nofollow ugc">liked</a> this
{{ else -}}
{{- else -}}
{{- if findRE `^https://brid.gy/[^/]*/mastodon` $webmention.source -}}
{{- $canonicalSrc := replaceRE "https://brid.gy/.*mastodon/@Seirdy@pleroma.envs.net/([^/]*)(.*)?" `https://pleroma.envs.net/notice/$1` $src -}}
<a class="u-url" itemprop="url" href="{{ $canonicalSrc }}" rel="nofollow ugc">
@ -96,10 +96,10 @@
{{- end -}}
<span itemprop="name" class="p-name">
{{ if $webmention.title -}}
{{ $title | truncate 200 | replaceRE ` \n` `
{{ $title | truncate 200 | replaceRE ` *\n` `
` | safeHTML -}}
{{ else -}}
{{- $webmention.source | strings.TrimPrefix "https://" | strings.TrimPrefix "www." | strings.TrimRight "/" | truncate 35 -}}
{{- $webmention.source | strings.TrimPrefix "https://" | strings.TrimPrefix "www." | strings.TrimRight "/" | replaceRE ` *\n` "\n" | truncate 35 -}}
{{ end -}}
</span
></a>
@ -110,8 +110,8 @@
{{- if findRE `^https://brid.gy/[^/]*/mastodon` $webmention.source -}}
<p role="doc-tip" itemprop="accessibilitySummary">This comment may have major formatting errors that could impact screen reader comprehension.</p>
{{- end -}}
<p><q itemprop="text" class="p-content">{{ $webmention.content | replaceRE `^@Seirdy(@pleroma.envs.net)? ?` "" | replaceRE ` \n` `
`}}</q></p>
<p><q itemprop="text" class="p-content">{{ $webmention.content | replaceRE `^@Seirdy(@pleroma.envs.net)? ?` "" | replaceRE `([ \t]*)?\n*([ \t]*)?` `
` | trim "\n\t" | chomp}}</q></p>
{{- end -}}
{{- end }}
</dd>

View file

@ -0,0 +1,34 @@
{
"extends": [
"html-validate:recommended",
"html-validate:standard",
"html-validate:a11y",
"html-validate:document"
],
"rules": {
"attribute-empty-style": [
"error",
{
"style": "empty"
}
],
"attribute-boolean-style": [
"error",
{
"style": "empty"
}
],
"void-style": [
"error",
{
"style": "selfclosing"
}
],
"require-sri": [
"off"
],
"prefer-button": [
"off"
]
}
}