Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Show more breadcrumbs
Specification Tools
Scripts
Commits
582116cd
Commit
582116cd
authored
4 months ago
by
Miguel Angel Reina Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Strip trailing spaces from grid table lines
parent
0fc4d7e4
No related branches found
No related tags found
1 merge request
!1
Restructuring and cleaning scripts for Mkdocs
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
toMkdocs/gridTableTools.py
+1
-1
1 addition, 1 deletion
toMkdocs/gridTableTools.py
with
1 addition
and
1 deletion
toMkdocs/gridTableTools.py
+
1
−
1
View file @
582116cd
...
@@ -160,7 +160,7 @@ def parseGridTableWithSpans(gridTable:str) -> tuple[GridTableRowList, GridTableR
...
@@ -160,7 +160,7 @@ def parseGridTableWithSpans(gridTable:str) -> tuple[GridTableRowList, GridTableR
nextListElementMark
=
'
@
'
nextListElementMark
=
'
@
'
# Split the input into lines
# Split the input into lines
lines
:
list
[
str
]
=
[
line
for
line
in
gridTable
.
split
(
'
\n
'
)]
lines
:
list
[
str
]
=
[
line
for
line
in
gridTable
.
rstrip
().
split
(
'
\n
'
)]
# Detect separator lines by pattern (it does not take into account partial separators
# Detect separator lines by pattern (it does not take into account partial separators
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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