Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 69 for paragraph (0.13 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/vendor/golang.org/x/text/unicode/bidi/bidi.go

    // 	panic("unimplemented")
    // }
    
    // DefaultDirection sets the default direction for a Paragraph. The direction is
    // overridden if the text contains directional characters.
    func DefaultDirection(d Direction) Option {
    	return func(opts *options) {
    		opts.defaultDirection = d
    	}
    }
    
    // A Paragraph holds a single Paragraph for Bidi processing.
    type Paragraph struct {
    	p          []byte
    	o          Ordering
    	opts       []Option
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 15 19:02:39 UTC 2021
    - 10.3K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. src/vendor/golang.org/x/text/unicode/bidi/core.go

    	for _, s := range set {
    		if c == s {
    			return true
    		}
    	}
    	return false
    }
    
    // A paragraph contains the state of a paragraph.
    type paragraph struct {
    	initialTypes []Class
    
    	// Arrays of properties needed for paired bracket evaluation in N0
    	pairTypes  []bracketType // paired Bracket types for paragraph
    	pairValues []rune        // rune for opening bracket or pbOpen and pbClose; 0 for pbNone
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 16 22:26:23 UTC 2022
    - 29.4K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top