Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for paragraph (0.21 sec)

  1. cmd/kubeadm/app/cmd/util/documentation.go

    				// In that case we join all of the paragraph lines with a single space,
    				// add a trailing newline character (to ensure an empty line after the paragraph),
    				// append the paragraph text to the output and clear everything in the current paragraph slice.
    				output = append(output, strings.Join(paragraph, " ")+"\n")
    				paragraph = []string{}
    			}
    		} else {
    			// Non-empty text line, append it to the current paragraph
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 24 11:40:55 UTC 2019
    - 4.4K bytes
    - Viewed (0)
  2. src/go/doc/comment/testdata/list6.txt

    				Plain "List after blank line."
    		Item Number=""
    			Paragraph
    				Plain "Another."
    	Paragraph
    		Plain "Even more text."
    	List ForceBlankBefore=false ForceBlankBetween=true
    		Item Number=""
    			Paragraph
    				Plain "List immediately after."
    		Item Number=""
    			Paragraph
    				Plain "Blank line between items."
    	Paragraph
    		Plain "Yet more text."
    	List ForceBlankBefore=true ForceBlankBetween=true
    		Item Number=""
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:31:48 UTC 2022
    - 2K bytes
    - Viewed (0)
  3. src/cmd/vendor/rsc.io/markdown/para.go

    	pos := p.pos()
    	pos.EndLine = pos.StartLine + len(b.text) - 1
    	return &Paragraph{
    		pos,
    		p.newText(pos, s),
    	}
    }
    
    func newPara(p *parseState, s line) (line, bool) {
    	// Process paragraph continuation text or start new paragraph.
    	b := p.para()
    	indented := p.lineDepth == len(p.stack)-2 // fully indented, not playing "pargraph continuation text" games
    	text := s.trimSpaceString()
    
    	if b != nil && b.table != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  4. src/go/doc/comment/testdata/para.txt

    -- input --
    Hello, world.
    This is a paragraph.
    
    -- gofmt --
    Hello, world.
    This is a paragraph.
    
    -- text --
    Hello, world. This is a paragraph.
    
    -- markdown --
    Hello, world. This is a paragraph.
    
    -- html --
    <p>Hello, world.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:31:41 UTC 2022
    - 243 bytes
    - Viewed (0)
  5. src/go/doc/comment/testdata/linklist2.txt

    Did you know?
    
      - [testing.T] is one doc link.
      - So is [testing.M].
      - So is [testing.B].
        This is the same list paragraph.
    
        There is [testing.PB] in this list item, too!
    -- text --
    Did you know?
    
      - testing.T is one doc link.
    
      - So is testing.M.
    
      - So is testing.B. This is the same list paragraph.
    
        There is testing.PB in this list item, too!
    -- markdown --
    Did you know?
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 30 21:57:02 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  6. src/go/doc/comment/testdata/hello.txt

    -- input --
    	Hello,
    	world
    
    	This is
    	a test.
    -- dump --
    Doc
    	Paragraph
    		Plain
    			"Hello,\n"
    			"world"
    	Paragraph
    		Plain
    			"This is\n"
    			"a test."
    -- gofmt --
    Hello,
    world
    
    This is
    a test.
    -- html --
    <p>Hello,
    world
    <p>This is
    a test.
    -- markdown --
    Hello, world
    
    This is a test.
    -- text --
    Hello, world
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:31:41 UTC 2022
    - 326 bytes
    - Viewed (0)
  7. src/go/doc/comment/markdown.go

    		switch s[i] {
    		case '\n':
    			// Turn all \n into spaces, for a few reasons:
    			//   - Avoid introducing paragraph breaks accidentally.
    			//   - Avoid the need to reindent after the newline.
    			//   - Avoid problems with Markdown renderers treating
    			//     every mid-paragraph newline as a <br>.
    			out.WriteString(s[start:i])
    			out.WriteByte(' ')
    			start = i + 1
    			continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:31:48 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/cmd/util/documentation_test.go

    			in:   "\t  \nLine1\nLine2  \n  \t",
    			out:  "Line1 Line2",
    		},
    		{
    			desc: "Multiple paragraphs are separated by a single empty line",
    			in:   "Paragraph1\n\nParagraph2\n\n\nParagraph3",
    			out:  "Paragraph1\n\nParagraph2\n\nParagraph3",
    		},
    		{
    			desc: "Indentation is not preserved",
    			in:   "\tParagraph1Line1\n\tParagraph1Line2\n\n    Paragraph2Line1\n    Paragraph2Line2",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 24 11:40:55 UTC 2019
    - 2.8K bytes
    - Viewed (0)
  9. platforms/documentation/docs-asciidoctor-extensions-base/src/test/groovy/org/gradle/docs/asciidoctor/ExampleSelfLinkProcessorTest.groovy

    <div class="title">Example 1. <a href="#ex-example-title-with-code">Example Title <code>with code</code></a></div>
    <div class="content">
    <div class="paragraph">
    <p>some text</p>
    </div>
    </div>
    </div>""")
        }
    
        def "renders example without title"() {
            given:
            String asciidocContent = """
    ====
    some text
    ====
    """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  10. src/cmd/vendor/rsc.io/markdown/list.go

    	if c, ok := p.nextB().(*listBuilder); ok {
    		list = c
    	}
    	if list == nil || list.bullet != rune(bullet) {
    		// “When the first list item in a list interrupts a paragraph—that is,
    		// when it starts on a line that would otherwise count as
    		// paragraph continuation text—then (a) the lines Ls must
    		// not begin with a blank line,
    		// and (b) if the list item is ordered, the start number must be 1.”
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top