Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 277 for Newlines (0.31 sec)

  1. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/MultiLineBuildProgressArea.java

                label.newLineAdjustment();
            }
        }
    
        public void redraw(AnsiContext ansi) {
            int newLines = 0 - statusAreaPos.row + getHeight() - 1;
            if (isVisible && newLines > 0) {
                ansi.cursorAt(Cursor.newBottomLeft()).newLines(newLines);
            }
    
            // Redraw every entry of this area
            for (int i = 0; i < entries.size(); ++i) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 5K bytes
    - Viewed (0)
  2. src/fmt/scan.go

    		// Space processing.
    		// In the rest of this comment "space" means spaces other than newline.
    		// Newline in the format matches input of zero or more spaces and then newline or end-of-input.
    		// Spaces in the format before the newline are collapsed into the newline.
    		// Spaces in the format after the newline match zero or more spaces after the corresponding input newline.
    		// Other spaces in the format match input of one or more spaces or end-of-input.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:56:20 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/mod/sumdb/dirhash/hash.go

    // ordered by sort.Strings applied to the file names, where each line consists of
    // the hexadecimal SHA-256 hash of the file content,
    // two spaces (U+0020), the file name, and a newline (U+000A).
    //
    // File names with newlines (U+000A) are disallowed.
    func Hash1(files []string, open func(string) (io.ReadCloser, error)) (string, error) {
    	h := sha256.New()
    	files = append([]string(nil), files...)
    	sort.Strings(files)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 10 18:59:52 UTC 2023
    - 4K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/ops/gen/cpp/renderers/renderer.h

      }
    
      // Append a multiline string of source code, left-justified (not indented).
      // Note: Trims leading/trailing whitespace including newlines, making this
      //       method convenient for multiline raw strings.
      // Newlines ('\n') are allowed/expected.
      Renderer &CodeLines(const string &text);
      template <typename... Args>
      Renderer CodeLines(absl::string_view text, const Args &...args) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 05:51:40 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  5. src/cmd/doc/pkg.go

    		log.Fatal(err)
    	}
    	pkg.buf.Reset() // Not needed, but it's a flush.
    }
    
    var newlineBytes = []byte("\n\n") // We never ask for more than 2.
    
    // newlines guarantees there are n newlines at the end of the buffer.
    func (pkg *Package) newlines(n int) {
    	for !bytes.HasSuffix(pkg.buf.Bytes(), newlineBytes[:n]) {
    		pkg.buf.WriteRune('\n')
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 20:15:52 UTC 2024
    - 32K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/util/users/users_linux.go

    	out := file
    	newLines := make([]string, 0, len(entries))
    	for _, e := range entries {
    		newLines = append(newLines, createEntry(e))
    	}
    	newLinesStr := ""
    	if len(newLines) > 0 {
    		if !strings.HasSuffix(out, "\n") { // Append a new line if its missing.
    			newLinesStr = "\n"
    		}
    		newLinesStr += strings.Join(newLines, "\n") + "\n"
    	}
    	return out + newLinesStr
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 25 16:35:10 UTC 2023
    - 20.7K bytes
    - Viewed (0)
  7. src/cmd/go/internal/work/shell_test.go

    		}
    		wantOut := buf.String()
    
    		if strings.Count(wantOut, "\n") != len(args)+bytes.Count(b, []byte("\n")) {
    			// One of the newlines in b was treated as a delimiter and not part of an
    			// argument. Our bash test script would interpret that as a syntax error.
    			t.Skipf("skipping %#q: contains a bare newline", b)
    		}
    
    		// We use the printf shell command to echo the arguments because, per
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 15 15:30:05 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  8. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/AnsiContext.java

         */
        AnsiContext a(CharSequence value);
    
        /**
         * @return the current context with a new line written.
         */
        AnsiContext newLine();
    
        /**
         * @return the current context with the specified new line written.
         */
        AnsiContext newLines(int numberOfNewLines);
    
        /**
         * @return the current context with the characters moving forward from the write position erased.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  9. pkg/util/tail/tail_test.go

    		},
    		{
    			name:          "the file length is longer than max",
    			max:           1,
    			longerThanMax: true,
    			expected:      "a",
    		},
    		{
    			name:          "the file length is longer than max and contains newlines",
    			max:           blockSize,
    			longerThanMax: true,
    			expected:      strings.Repeat("a", blockSize/2-1) + "\n" + strings.Repeat("a", blockSize/2),
    		},
    		{
    			name:          "the max is longer than file length ",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 13:13:22 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  10. pkg/log/logr.go

    func (zl *zapLogger) Enabled(level int) bool {
    	if level > debugLevelThreshold {
    		return zl.l.DebugEnabled()
    	}
    	return zl.l.InfoEnabled()
    }
    
    // Logs will come in with newlines, but our logger auto appends newline
    func trimNewline(msg string) string {
    	if len(msg) == 0 {
    		return msg
    	}
    	lc := len(msg) - 1
    	if msg[lc] == '\n' {
    		return msg[:lc]
    	}
    	return msg
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 3K bytes
    - Viewed (0)
Back to top