Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #11230 (closed defect: fixed)

Opened 8 months ago

Last modified 7 months ago

[PATCH] simple_format docs: """ strings, \n not shown

Reported by: Henrik N Assigned to: core
Priority: low Milestone: 2.x
Component: ActionPack Version: edge
Severity: minor Keywords: tiny patch doc
Cc:

Description

Attached patch fixes two issues with the simple_format helper docs:

The docs use Python-style """ strings. These actually work (since they're parsed as "" + "the string" + "") but they don't do anything special, other than confuse. So I made these regular double-quoted strings. I also made them one-liners.

The docs also mention that the method leaves line-breaks in, but doesn't show that in the output. Fixed in the patch.

Attachments

simple_format_doc.diff (1.3 kB) - added by Henrik N on 02/27/08 15:52:48.

Change History

02/27/08 15:52:48 changed by Henrik N

  • attachment simple_format_doc.diff added.

03/15/08 20:08:54 changed by david

  • status changed from new to closed.
  • resolution set to fixed.

(In [9035]) Docfix (closes #11230) [Henrik N]