ruby-changes:42371
From: nobu <ko1@a...>
Date: Thu, 31 Mar 2016 11:33:57 +0900 (JST)
Subject: [ruby-changes:42371] nobu:r54445 (trunk): date_core.c: fix indent
nobu 2016-03-31 11:33:51 +0900 (Thu, 31 Mar 2016) New Revision: 54445 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54445 Log: date_core.c: fix indent * ext/date/date_core.c (d_lite_strftime, dt_lite_strftime): [DOC] fix indent not to be a big sole verbatim. Modified files: trunk/ChangeLog trunk/ext/date/date_core.c Index: ChangeLog =================================================================== --- ChangeLog (revision 54444) +++ ChangeLog (revision 54445) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu Mar 31 11:33:49 2016 Nobuyoshi Nakada <nobu@r...> + + * ext/date/date_core.c (d_lite_strftime, dt_lite_strftime): [DOC] + fix indent not to be a big sole verbatim. + Thu Mar 31 11:18:19 2016 Nobuyoshi Nakada <nobu@r...> * ext/date/date_core.c (Init_date_core): [DOC] fix misplaced doc Index: ext/date/date_core.c =================================================================== --- ext/date/date_core.c (revision 54444) +++ ext/date/date_core.c (revision 54445) @@ -6691,32 +6691,32 @@ date_strftime_internal(int argc, VALUE * https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L6691 * call-seq: * d.strftime([format='%F']) -> string * - * Formats date according to the directives in the given format - * string. - * The directives begins with a percent (%) character. - * Any text not listed as a directive will be passed through to the - * output string. - * - * The directive consists of a percent (%) character, - * zero or more flags, optional minimum field width, - * optional modifier and a conversion specifier - * as follows. + * Formats date according to the directives in the given format + * string. + * The directives begins with a percent (%) character. + * Any text not listed as a directive will be passed through to the + * output string. + * + * The directive consists of a percent (%) character, + * zero or more flags, optional minimum field width, + * optional modifier and a conversion specifier + * as follows. * * %<flags><width><modifier><conversion> * - * Flags: + * Flags: * - don't pad a numerical output. * _ use spaces for padding. * 0 use zeros for padding. * ^ upcase the result string. * # change case. * - * The minimum field width specifies the minimum width. + * The minimum field width specifies the minimum width. * - * The modifiers are "E", "O", ":", "::" and ":::". - * "E" and "O" are ignored. No effect to result currently. + * The modifiers are "E", "O", ":", "::" and ":::". + * "E" and "O" are ignored. No effect to result currently. * - * Format directives: + * Format directives: * * Date (Year, Month, Day): * %Y - Year with century (can be negative, 4 digits at least) @@ -6809,23 +6809,23 @@ date_strftime_internal(int argc, VALUE * https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L6809 * %T - 24-hour time (%H:%M:%S) * %+ - date(1) (%a %b %e %H:%M:%S %Z %Y) * - * This method is similar to strftime() function defined in ISO C and POSIX. - * Several directives (%a, %A, %b, %B, %c, %p, %r, %x, %X, %E*, %O* and %Z) - * are locale dependent in the function. - * However this method is locale independent. - * So, the result may differ even if a same format string is used in other - * systems such as C. - * It is good practice to avoid %x and %X because there are corresponding - * locale independent representations, %D and %T. + * This method is similar to strftime() function defined in ISO C and POSIX. + * Several directives (%a, %A, %b, %B, %c, %p, %r, %x, %X, %E*, %O* and %Z) + * are locale dependent in the function. + * However this method is locale independent. + * So, the result may differ even if a same format string is used in other + * systems such as C. + * It is good practice to avoid %x and %X because there are corresponding + * locale independent representations, %D and %T. * - * Examples: + * Examples: * * d = DateTime.new(2007,11,19,8,37,48,"-06:00") * #=> #<DateTime: 2007-11-19T08:37:48-0600 ...> * d.strftime("Printed on %m/%d/%Y") #=> "Printed on 11/19/2007" * d.strftime("at %I:%M%p") #=> "at 08:37AM" * - * Various ISO 8601 formats: + * Various ISO 8601 formats: * %Y%m%d => 20071119 Calendar date (basic) * %F => 2007-11-19 Calendar date (extended) * %Y-%m => 2007-11 Calendar date, reduced accuracy, specific month @@ -8134,20 +8134,20 @@ dt_lite_to_s(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L8134 * call-seq: * dt.strftime([format='%FT%T%:z']) -> string * - * Formats date according to the directives in the given format - * string. - * The directives begins with a percent (%) character. - * Any text not listed as a directive will be passed through to the - * output string. - * - * The directive consists of a percent (%) character, - * zero or more flags, optional minimum field width, - * optional modifier and a conversion specifier - * as follows. + * Formats date according to the directives in the given format + * string. + * The directives begins with a percent (%) character. + * Any text not listed as a directive will be passed through to the + * output string. + * + * The directive consists of a percent (%) character, + * zero or more flags, optional minimum field width, + * optional modifier and a conversion specifier + * as follows. * * %<flags><width><modifier><conversion> * - * Flags: + * Flags: * - don't pad a numerical output. * _ use spaces for padding. * 0 use zeros for padding. @@ -8155,12 +8155,12 @@ dt_lite_to_s(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L8155 * # change case. * : use colons for %z. * - * The minimum field width specifies the minimum width. + * The minimum field width specifies the minimum width. * - * The modifier is "E" and "O". - * They are ignored. + * The modifier is "E" and "O". + * They are ignored. * - * Format directives: + * Format directives: * * Date (Year, Month, Day): * %Y - Year with century (can be negative, 4 digits at least) @@ -8253,23 +8253,23 @@ dt_lite_to_s(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L8253 * %T - 24-hour time (%H:%M:%S) * %+ - date(1) (%a %b %e %H:%M:%S %Z %Y) * - * This method is similar to strftime() function defined in ISO C and POSIX. - * Several directives (%a, %A, %b, %B, %c, %p, %r, %x, %X, %E*, %O* and %Z) - * are locale dependent in the function. - * However this method is locale independent. - * So, the result may differ even if a same format string is used in other - * systems such as C. - * It is good practice to avoid %x and %X because there are corresponding - * locale independent representations, %D and %T. + * This method is similar to strftime() function defined in ISO C and POSIX. + * Several directives (%a, %A, %b, %B, %c, %p, %r, %x, %X, %E*, %O* and %Z) + * are locale dependent in the function. + * However this method is locale independent. + * So, the result may differ even if a same format string is used in other + * systems such as C. + * It is good practice to avoid %x and %X because there are corresponding + * locale independent representations, %D and %T. * - * Examples: + * Examples: * * d = DateTime.new(2007,11,19,8,37,48,"-06:00") * #=> #<DateTime: 2007-11-19T08:37:48-0600 ...> * d.strftime("Printed on %m/%d/%Y") #=> "Printed on 11/19/2007" * d.strftime("at %I:%M%p") #=> "at 08:37AM" * - * Various ISO 8601 formats: + * Various ISO 8601 formats: * %Y%m%d => 20071119 Calendar date (basic) * %F => 2007-11-19 Calendar date (extended) * %Y-%m => 2007-11 Calendar date, reduced accuracy, specific month -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/