File tree Expand file tree Collapse file tree 6 files changed +27
-5
lines changed Expand file tree Collapse file tree 6 files changed +27
-5
lines changed Original file line number Diff line number Diff line change @@ -687,9 +687,19 @@ sub parse {
687
687
{
688
688
# Found BlockId
689
689
do_paragraph( $self , $paragraph , $wrapped_mode );
690
- $paragraph = " " ;
690
+ my $block_id = $1 ;
691
+ $paragraph = " " ;
691
692
$wrapped_mode = 1;
692
- $self -> pushline( $line . " \n " );
693
+ if ($block_id =~ m / ^([^,]+),(.+)$ / ) {
694
+ # Found BlockId with a xlabel
695
+ my $xlabel = $2 ;
696
+ $block_id = $1 ;
697
+ $self -> pushline( " [[$block_id ," );
698
+ do_paragraph( $self , $xlabel , 0);
699
+ $self -> pushline( " ]]\n " );
700
+ } else {
701
+ $self -> pushline( $line . " \n " );
702
+ }
693
703
undef $self -> {bullet };
694
704
undef $self -> {indent };
695
705
} elsif ( not defined $self -> {verbatim }
Original file line number Diff line number Diff line change @@ -5,5 +5,5 @@ Test BlockId Element
5
5
Some paragraph text. Some paragraph text. Some paragraph text.
6
6
Some paragraph text. Some paragraph text. Some paragraph text.
7
7
8
-
8
+ [[ipsum-quia,Second Paragraph]]
9
9
Reference to <<lorem-ipsum, Lorem Ipsum>>.
Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ Test BlockId Element
4
4
[[lorem-ipsum]]
5
5
Some paragraph text. Some paragraph text. Some paragraph text. Some paragraph text. Some paragraph text. Some paragraph text.
6
6
7
-
7
+ [[ipsum-quia,Second Paragraph]]
8
8
Reference to <<lorem-ipsum, Lorem Ipsum>>.
Original file line number Diff line number Diff line change @@ -31,6 +31,12 @@ msgstr ""
31
31
"SOME PARAGRAPH TEXT. SOME PARAGRAPH TEXT. SOME PARAGRAPH TEXT. SOME "
32
32
"PARAGRAPH TEXT. SOME PARAGRAPH TEXT. SOME PARAGRAPH TEXT."
33
33
34
+ #. type: Plain text
35
+ #: BlockId.adoc:8
36
+ #, no-wrap
37
+ msgid "Second Paragraph"
38
+ msgstr "SECOND PARAGRAPH"
39
+
34
40
#. type: Plain text
35
41
#: BlockId.adoc:9
36
42
msgid "Reference to <<lorem-ipsum, Lorem Ipsum>>."
Original file line number Diff line number Diff line change @@ -29,6 +29,12 @@ msgid ""
29
29
"paragraph text. Some paragraph text. Some paragraph text."
30
30
msgstr ""
31
31
32
+ #. type: Plain text
33
+ #: BlockId.adoc:8
34
+ #, no-wrap
35
+ msgid "Second Paragraph"
36
+ msgstr ""
37
+
32
38
#. type: Plain text
33
39
#: BlockId.adoc:9
34
40
msgid "Reference to <<lorem-ipsum, Lorem Ipsum>>."
Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ TEST BLOCKID ELEMENT
4
4
[[lorem-ipsum]]
5
5
SOME PARAGRAPH TEXT. SOME PARAGRAPH TEXT. SOME PARAGRAPH TEXT. SOME PARAGRAPH TEXT. SOME PARAGRAPH TEXT. SOME PARAGRAPH TEXT.
6
6
7
-
7
+ [[ipsum-quia,SECOND PARAGRAPH]]
8
8
REFERENCE TO <<lorem-ipsum, LOREM IPSUM>>.
You can’t perform that action at this time.
0 commit comments