Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Lesson Template
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
prace-lessons
Lesson Template
Commits
9668bc5b
There was an error fetching the commit references. Please try again later.
Commit
9668bc5b
authored
9 years ago
by
Raniere Silva
Browse files
Options
Downloads
Plain Diff
Merge branch 'core' into gh-pages
parents
d8b170bd
c70bebd3
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/check.py
+8
-18
8 additions, 18 deletions
tools/check.py
with
8 additions
and
18 deletions
tools/check.py
+
8
−
18
View file @
9668bc5b
...
@@ -565,24 +565,14 @@ class ReferencePageValidator(MarkdownValidator):
...
@@ -565,24 +565,14 @@ class ReferencePageValidator(MarkdownValidator):
entry_is_valid
=
True
entry_is_valid
=
True
for
line_index
,
line
in
enumerate
(
glossary_entry
):
for
line_index
,
line
in
enumerate
(
glossary_entry
):
if
line_index
==
1
:
if
line_index
==
1
and
not
re
.
match
(
"
^:
"
,
line
):
if
not
re
.
match
(
"
^:
"
,
line
):
logging
.
error
(
logging
.
error
(
"
In {0}:
"
"
In {0}:
"
"
At glossary entry
'
{1}
'
"
"
At glossary entry
'
{1}
'
"
"
First line of definition must
"
"
First line of definition must
"
"
start with
'
:
'
.
"
.
format
(
"
start with
'
:
'
.
"
.
format
(
self
.
filename
,
glossary_keyword
))
self
.
filename
,
glossary_keyword
))
entry_is_valid
=
False
entry_is_valid
=
False
elif
line_index
>
1
:
if
not
re
.
match
(
"
^
"
,
line
):
logging
.
error
(
"
In {0}:
"
"
At glossary entry
'
{1}
'
"
"
Subsequent lines of definition must
"
"
start with
'
'
.
"
.
format
(
self
.
filename
,
glossary_keyword
,
))
entry_is_valid
=
False
return
entry_is_valid
return
entry_is_valid
def
_validate_glossary
(
self
):
def
_validate_glossary
(
self
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment