Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Changes In Branch respectformatting Excluding Merge-Ins
This is equivalent to a diff from e3df30f45c to 1f2eac618c
|
2014-06-22
| ||
| 02:59 | "Usage" info for "fossil help rss", per mailing list request. (thx Michai Ramakers) ... (check-in: bc30d829ab user: bch tags: trunk) | |
|
2014-06-20
| ||
| 20:56 | Merge updates from trunk. ... (check-in: 265a48d3ec user: mistachkin tags: experimental) | |
| 20:55 | Merge updates from trunk. ... (Closed-Leaf check-in: 1f2eac618c user: mistachkin tags: respectformatting) | |
| 20:54 | Make sure the --width option is honored by all calls into print_timeline(). ... (check-in: e3df30f45c user: mistachkin tags: trunk) | |
| 19:48 | Update comment tests. ... (check-in: fcbfd8b5a1 user: mistachkin tags: respectformatting) | |
| 19:11 | Add and adjust comment tests from the experimental branch. ... (check-in: 2920e7df00 user: mistachkin tags: trunk) | |
Changes to src/comformat.c.
| ︙ | |||
42 43 44 45 46 47 48 | 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | - - - + + - - |
** the left margin and that a single line can contain no more than
** lineLength characters. Indent all subsequent lines by indent.
**
** Return the number of newlines that are output.
*/
int comment_print(const char *zText, int indent, int lineLength){
int tlen = lineLength - indent;
|
| ︙ | |||
78 79 80 81 82 83 84 | 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 111 112 113 114 115 116 117 118 119 120 121 122 | - - - - - - - - - - - - + + + + + + - - - - - - - + + + + + + + - - - - + + + - - - - - - - - + + - - - - - - - + + + + + + + + - - - - + + + + - - + + |
tlen = COMMENT_LEGACY_LINE_LENGTH - indent;
}
#endif
if( zText==0 ) zText = "(NULL)";
if( tlen<=0 ){
tlen = strlen(zText);
}
|
| ︙ |
Changes to test/comment.test.
| ︙ | |||
34 35 36 37 38 39 40 | 34 35 36 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 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 | - + - + + - - + + + - + + - + + + + + - + - + |
###############################################################################
fossil test-comment-format --decode " " "this is a short comment." 26
test comment-4 {$RESULT eq " this is a short comment.\n(1 lines output)"}
###############################################################################
|