summaryrefslogtreecommitdiff
path: root/src/pkg/tabwriter
AgeCommit message (Collapse)AuthorFilesLines
2012-04-06Imported Upstream version 1upstream/1Ondřej Surý3-1187/+0
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý3-0/+1187
2011-09-13Imported Upstream version 60Ondřej Surý3-1222/+0
2011-06-30Imported Upstream version 58upstream/58Ondřej Surý1-1/+1
2011-04-28Imported Upstream version 2011.04.27upstream/2011.04.27Ondřej Surý1-2/+2
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý3-128/+160
2010-05-27changes &x -> x[0:] for array to slice conversionRuss Cox1-1/+1
R=gri CC=golang-dev http://codereview.appspot.com/1326042
2010-03-31tabwriter: use panic/recover to handle errorsRobert Griesemer1-50/+47
R=rsc, r CC=golang-dev http://codereview.appspot.com/864042
2010-03-24delete all uses of panicln by rewriting them using panic or,Rob Pike1-1/+1
in the tests, println+panic. gofmt some tests too. R=rsc CC=golang-dev http://codereview.appspot.com/741041
2010-02-25tabwriter: make use of new []byte() conversionRobert Griesemer1-2/+2
R=rsc CC=golang-dev http://codereview.appspot.com/224063
2010-02-25tabwriter: indicate section breaks if Debug flag is setRobert Griesemer2-0/+10
R=rsc CC=golang-dev http://codereview.appspot.com/224057
2009-12-151) Change default gofmt default settings forRobert Griesemer2-164/+164
parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 5th and last set of files. R=rsc CC=golang-dev http://codereview.appspot.com/180050
2009-12-09remove uses of string concatenation from src and misc directoryRobert Griesemer1-120/+120
R=rsc http://codereview.appspot.com/172041
2009-12-02Add flag -tabindent to gofmt: forces use ofRobert Griesemer2-139/+159
tabs for indentation even if -spaces is set. Changes to gofmt: - added -tabindent flag - don't recompute parser and printer mode repeatedly Changes to go/printer: - provide new printing mode TabIndent Changes to tabwriter: - implement new mode TabIndent to use tabs independent of the actual padding character for leading empty columns - distinguish between minimal cell width and tab width (tabwidth is only used if the output contains tabs, minwidth and padding are always considered) - fixed and added more comments - some additional factoring By default, -tabindent is disabled and the default gofmt behavior is unchanged. By setting -spaces and -tabindent, gofmt will use tabs for indentation but do any other alignment with spaces. This permits a user to change the visible indentation by simply changing the editor's tab width and the code will remain properly aligned without the need to rerun gofmt. R=rsc http://codereview.appspot.com/163068
2009-11-24Change to container/vector interface:Robert Griesemer1-3/+3
- removed New(len int) in favor of new(Vector).Resize(len, cap) - removed Init(len int) in favor of Resize(len, cap) - runs all.bash Fixes issue 294. R=rsc, r, r1 http://codereview.appspot.com/157143
2009-11-23go: makes it build for the case $GOROOT has whitespacesSergio Luis O. B. Correia1-2/+2
the bash scripts and makefiles for building go didn't take into account the fact $GOROOT / $GOBIN could both be directories containing whitespaces, and was not possible to build it in such a situation. this commit adjusts the various makefiles/scripts to make it aware of that possibility, and now it builds successfully when using a path with whitespaces as well. Fixes issue 115. R=rsc, dsymonds1 http://codereview.appspot.com/157067 Committer: Russ Cox <rsc@golang.org>
2009-11-20gofmt -r 'α[β:len(α)] -> α[β:]' -w src/cmd src/pkgRuss Cox1-1/+1
R=r, gri CC=golang-dev http://codereview.appspot.com/156115
2009-11-10minor adjustments to package comments for better synopsis.Robert Griesemer1-2/+3
R=rsc CC=r http://go/go-review/1026038
2009-11-09- replaced gofmt expression formatting algorithm withRobert Griesemer2-20/+20
rsc's algorithm - applied gofmt -w misc src - partial CL (last chunk) R=rsc, r http://go/go-review/1024041
2009-11-09remove semis after statements in one-statement statement listsRobert Griesemer2-40/+40
R=rsc, r http://go/go-review/1025029
2009-11-07- avoid division-by-zero crash in tabwriterRobert Griesemer2-6/+10
- correct tabwidth argument for some tabwriter test cases - catch negative tabwidth flag in gofmt w/o crashing R=rsc http://go/go-review/1026022
2009-11-06- fine-tuning of one-line func heuristic (nodes.go)Robert Griesemer2-15/+5
- enabled for function declarations (not just function literals) - applied gofmt -w $GOROOT/src (look for instance at src/pkg/debug/elf/elf.go) R=r, rsc CC=go-dev http://go/go-review/1026006
2009-11-05gofmt'ed various stragglersRobert Griesemer1-120/+120
R=rsc http://go/go-review/1022002
2009-11-04gofmt-ify tabwriterRobert Griesemer2-110/+115
R=rsc http://go/go-review/1017042
2009-10-15permit escaped text segments which pass through tabwriterRobert Griesemer2-50/+109
undisturbed and uninterpreted R=rsc DELTA=141 (82 added, 23 deleted, 36 changed) OCL=35747 CL=35769
2009-10-08- debugging supportRobert Griesemer2-12/+110
R=rsc DELTA=110 (98 added, 0 deleted, 12 changed) OCL=35487 CL=35490
2009-10-07support for "hard" and "soft" tabs:Robert Griesemer2-18/+53
- soft-tab separated columns can be discarded if empty and DiscardEmptyColumns is set - hard-tab separated columns are never discarded R=rsc DELTA=63 (42 added, 7 deleted, 14 changed) OCL=35421 CL=35435
2009-10-06- set uint type for flagsRobert Griesemer1-16/+16
- simplified some code R=rsc DELTA=19 (0 added, 0 deleted, 19 changed) OCL=35405 CL=35407
2009-10-06add IgnoreEmptyColumns feature to tabwriterRobert Griesemer2-21/+93
R=rsc DELTA=96 (74 added, 2 deleted, 20 changed) OCL=35391 CL=35402
2009-09-16rename bytes.Buffer.Data() to bytes.Buffer.Bytes()Rob Pike1-4/+4
R=rsc DELTA=152 (6 added, 0 deleted, 146 changed) OCL=34695 CL=34701
2009-08-12convert non-low-level non-google pkg codeRuss Cox2-65/+15
to whole-package compilation. R=r OCL=33070 CL=33101
2009-06-29io.StringBytes -> strings.BytesRuss Cox1-2/+3
io.ByteBuffer -> bytes.Buffer left io.ByteBuffer stub around for now, for protocol compiler. R=r OCL=30861 CL=30872
2009-06-181) Fix a problem with tabwriter.Flush: any pending text not yetRobert Griesemer2-120/+191
in a cell makes a final cell in that line (this showed up as occasionally missing single spaces in godoc-formatted declarations that fit on a single line) 2) Cleaned up tabwriter implementation a bit: - replaced local unicodeLen() with utf8.RuneCount() - instead of having 2 parallel arrays for line widths and sizes, have a single array of cells containing a width and size - factored code a bit better - added more comments - added testnames to tabwriter tests - added more test cases and fixed a broken test case that now works correctly R=r DELTA=279 (133 added, 62 deleted, 84 changed) OCL=30509 CL=30514
2009-06-09mv src/lib to src/pkgRob Pike3-0/+877
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102