Tcl Library Source Code

Check-in [5ea283171a]
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to [email protected]
or submit via the online form by Sep 9.

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Markdown: Fixed indenting of example sections (as code blocks) nested in lists. Updated test results.
Timelines: family | ancestors | descendants | both | doc-fixup-and-markdown
Files: files | file ages | folders
SHA3-256: 5ea283171abec0432e3321f2148e436678ee61d94b38e458b2f0d3918870aea1
User & Date: aku 2019-03-20 03:51:25
Context
2019-03-20
05:31
Markdown: Implemented section cross references, per-page TOC. Updated test results. check-in: 78d88166a8 user: aku tags: doc-fixup-and-markdown
03:51
Markdown: Fixed indenting of example sections (as code blocks) nested in lists. Updated test results. check-in: 5ea283171a user: aku tags: doc-fixup-and-markdown
2019-03-19
23:46
Markdown: Fixed paragraph counting when nesting lists. Fix for indenting in progress. check-in: d5f39d22eb user: andreask tags: doc-fixup-and-markdown
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to modules/doctools/mpformats/_text_dlist.tcl.

103
104
105
106
107
108
109

110
111
112
113
114
115
116
proc ListNone     {} { CAttrSet listtype {} }
proc MarginIn     {} { CAttrIncr lmargin [LMI] }
proc MarginReset  {} { CAttrSet lmargin 0 }
proc PrefixReset  {} { CAttrSet prefix {} }
proc WPrefixReset {} { CAttrSet wspfx {} }

proc Prefix!   {p} { CAttrSet prefix $p }

proc WPrefix!  {p} { CAttrSet wspfx  $p }

proc Bullet?   {} { CAttrGet bullet }
proc ListType? {} { CAttrGet listtype }
proc Margin?   {} { CAttrGet lmargin }
proc Prefix?   {} { CAttrGet prefix }
proc WPrefix?  {} { CAttrGet wspfx }






>







103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
proc ListNone     {} { CAttrSet listtype {} }
proc MarginIn     {} { CAttrIncr lmargin [LMI] }
proc MarginReset  {} { CAttrSet lmargin 0 }
proc PrefixReset  {} { CAttrSet prefix {} }
proc WPrefixReset {} { CAttrSet wspfx {} }

proc Prefix!   {p} { CAttrSet prefix $p }
proc Prefix+   {p} { CAttrAppend prefix $p }
proc WPrefix!  {p} { CAttrSet wspfx  $p }

proc Bullet?   {} { CAttrGet bullet }
proc ListType? {} { CAttrGet listtype }
proc Margin?   {} { CAttrGet lmargin }
proc Prefix?   {} { CAttrGet prefix }
proc WPrefix?  {} { CAttrGet wspfx }

Changes to modules/doctools/mpformats/fmt.markdown.

42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
}
proc In! {ws} {
    CAttrSet mdindent $ws
}

proc NewExample {} {
    return [ContextNew Example {
	VerbatimOn ; Example! ; Prefix! "    "
    }] ; # {}
}

proc NewUnorderedList {} {
    # Itemized list - unordered list - bullet
    # 1. Base context provides indentation.
    # 2. First paragraph in a list item.






|







42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
}
proc In! {ws} {
    CAttrSet mdindent $ws
}

proc NewExample {} {
    return [ContextNew Example {
	VerbatimOn ; Example! ; Prefix+ "    "
    }] ; # {}
}

proc NewUnorderedList {} {
    # Itemized list - unordered list - bullet
    # 1. Base context provides indentation.
    # 2. First paragraph in a list item.

Changes to modules/doctools/tests/fmt/markdown/08.

37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
    DESCRIPTION ::*Emphasis*::

  - TERM

    DESCRIPTION ::"File/Path"::

  * Command-Line Switch:	__NAME__  
    Database Name:	__DBNAME__  
    Database Class:	__CLASS__

    DESCRIPTION -> NARGLE

  * Command-Line Switch:	__NAME__  
    Database Name:	__DBNAME__  
    Database Class:	__CLASS__

    DESCRIPTION ::__Function__::

  * Command-Line Switch:	__NAME__  
    Database Name:	__DBNAME__  
    Database Class:	__CLASS__

    DESCRIPTION ::__Method__::

  - TERM

    DESCRIPTION

  - CMDNAME ...

    DESCRIPTION ::__Namespace__::

  * TYPE *NAME*

    DESCRIPTION ::*Argument*::

  * TYPE *NAME*

    DESCRIPTION ::__Option__::

  * TYPE *NAME* (MODE)

    DESCRIPTION ::?Optional?::

    THE ARGUMENT IS USED IN THIS
    AND/OR THAT MANNER

  - CMDNAME ...

    DESCRIPTION ::__Package__::

  - CMDNAME ...

    DESCRIPTION ::__SystemCommand__::

  * __NAME__

    DESCRIPTION ::*Term*::

  * __NAME__

    DESCRIPTION ::__Type__::

  * __NAME__ ARGUMENT

    DESCRIPTION ::[Uri](Uri)::

## NARGLE

  1. PARAGRAPH ::[UriLabel](Uri)::

  1. PARAGRAPH ::__Variable__::







|
|
|

|

|
|
|

|

|
|
|

|









|

|

|

|

|

|

|
|









|

|

|

|

|

|







37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
    DESCRIPTION ::*Emphasis*::

  - TERM

    DESCRIPTION ::"File/Path"::

      * Command-Line Switch:	__NAME__  
        Database Name:	__DBNAME__  
        Database Class:	__CLASS__

        DESCRIPTION -> NARGLE

      * Command-Line Switch:	__NAME__  
        Database Name:	__DBNAME__  
        Database Class:	__CLASS__

        DESCRIPTION ::__Function__::

      * Command-Line Switch:	__NAME__  
        Database Name:	__DBNAME__  
        Database Class:	__CLASS__

        DESCRIPTION ::__Method__::

  - TERM

    DESCRIPTION

  - CMDNAME ...

    DESCRIPTION ::__Namespace__::

      * TYPE *NAME*

        DESCRIPTION ::*Argument*::

      * TYPE *NAME*

        DESCRIPTION ::__Option__::

      * TYPE *NAME* (MODE)

        DESCRIPTION ::?Optional?::

            THE ARGUMENT IS USED IN THIS
            AND/OR THAT MANNER

  - CMDNAME ...

    DESCRIPTION ::__Package__::

  - CMDNAME ...

    DESCRIPTION ::__SystemCommand__::

      * __NAME__

        DESCRIPTION ::*Term*::

      * __NAME__

        DESCRIPTION ::__Type__::

      * __NAME__ ARGUMENT

        DESCRIPTION ::[Uri](Uri)::

## NARGLE

  1. PARAGRAPH ::[UriLabel](Uri)::

  1. PARAGRAPH ::__Variable__::

Changes to modules/doctools/tests/fmt/markdown/15.

9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# DESCRIPTION

lorem ipsum dolores

  - lorem

    A1 lorem ipsum dolores

  - lorem

    ipsum dolores

    B2 lorem ipsum dolores

    lorem ipsum dolores

  - lorem

    ipsum dolores

    C3 lorem ipsum dolores

  - lorem

    ipsum dolores

# COPYRIGHT

Copyright © .COPYRIGHT.






|





|







|








9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# DESCRIPTION

lorem ipsum dolores

  - lorem

        A1 lorem ipsum dolores

  - lorem

    ipsum dolores

        B2 lorem ipsum dolores

    lorem ipsum dolores

  - lorem

    ipsum dolores

        C3 lorem ipsum dolores

  - lorem

    ipsum dolores

# COPYRIGHT

Copyright © .COPYRIGHT.

Changes to modules/doctools/tests/fmt/markdown/index.

11
12
13
14
15
16
17



  * [09.md](09.md)
  * [10.md](10.md)
  * [11.md](11.md)
  * [12.md](12.md)
  * [13.md](13.md)
  * [14.md](14.md)
  * [15.md](15.md)









>
>
>
11
12
13
14
15
16
17
18
19
20
  * [09.md](09.md)
  * [10.md](10.md)
  * [11.md](11.md)
  * [12.md](12.md)
  * [13.md](13.md)
  * [14.md](14.md)
  * [15.md](15.md)
  * [16.md](16.md)
  * [17.md](17.md)
  * [18.md](18.md)