Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
5ea5ffc9
Commit
5ea5ffc9
authored
Jan 23, 2013
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: support multitable in texi2pod
parent
0b55b16a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
texi2pod.pl
doc/texi2pod.pl
+18
-2
No files found.
doc/texi2pod.pl
View file @
5ea5ffc9
...
...
@@ -161,7 +161,7 @@ INF: while(<$inf>) {
}
elsif
(
$ended
=~
/^(?:example|smallexample|display)$/
)
{
$shift
=
""
;
$_
=
""
;
# need a paragraph break
}
elsif
(
$ended
=~
/^(?:itemize|enumerate|
[fv]
?table)$/
)
{
}
elsif
(
$ended
=~
/^(?:itemize|enumerate|
(?:multi|[fv])
?table)$/
)
{
$_
=
"\n=back\n"
;
$ic
=
pop
@icstack
;
}
else
{
...
...
@@ -262,7 +262,7 @@ INF: while(<$inf>) {
$endw
=
"enumerate"
;
};
/^\@(
[fv]
?table)\s+(\@[a-z]+)/
and
do
{
/^\@(
(?:multi|[fv])
?table)\s+(\@[a-z]+)/
and
do
{
push
@endwstack
,
$endw
;
push
@icstack
,
$ic
;
$endw
=
$1
;
...
...
@@ -271,6 +271,7 @@ INF: while(<$inf>) {
$ic
=~
s/\@(?:code|kbd)/C/
;
$ic
=~
s/\@(?:dfn|var|emph|cite|i)/I/
;
$ic
=~
s/\@(?:file)/F/
;
$ic
=~
s/\@(?:columnfractions)//
;
$_
=
"\n=over 4\n"
;
};
...
...
@@ -281,6 +282,21 @@ INF: while(<$inf>) {
$_
=
""
;
# need a paragraph break
};
/^\@item\s+(.*\S)\s*$/
and
$endw
eq
"multitable"
and
do
{
my
$columns
=
$1
;
$columns
=~
s/\@tab/ : /
;
$_
=
"\n=item B<"
.
$columns
.
">\n"
;
};
/^\@tab\s+(.*\S)\s*$/
and
$endw
eq
"multitable"
and
do
{
my
$columns
=
$1
;
$columns
=~
s/\@tab/ : /
;
$_
=
" : "
.
$columns
;
$section
=~
s/\n+\s+$//
;
};
/^\@itemx?\s*(.+)?$/
and
do
{
if
(
defined
$1
)
{
# Entity escapes prevent munging by the <> processing below.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment