Last Comment Bug 723459 - Add an API to SourceEditor to retrieve the character(s) used for indentation
: Add an API to SourceEditor to retrieve the character(s) used for indentation
Status: RESOLVED FIXED
[sourceeditor]
: dev-doc-complete
Product: Firefox
Classification: Client Software
Component: Developer Tools (show other bugs)
: Trunk
: All All
: -- normal (vote)
: Firefox 13
Assigned To: Cedric Vivier [:cedricv]
:
Mentors:
Depends on:
Blocks: 723651 723460 723820
  Show dependency treegraph
 
Reported: 2012-02-02 04:00 PST by Cedric Vivier [:cedricv]
Modified: 2012-04-28 14:56 PDT (History)
3 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
patch v1 (2.60 KB, patch)
2012-02-02 04:18 PST, Cedric Vivier [:cedricv]
mihai.sucan: review+
Details | Diff | Review

Description Cedric Vivier [:cedricv] 2012-02-02 04:00:43 PST
eg.

getIndentationString() => returns "\t", "  ", "     " or whatever the user or the editor is set to use for indentation.

Useful for generation of text inside an editor.
Comment 1 Cedric Vivier [:cedricv] 2012-02-02 04:18:57 PST
Created attachment 593787 [details] [diff] [review]
patch v1
Comment 2 Mihai Sucan [:msucan] 2012-02-02 05:09:22 PST
Comment on attachment 593787 [details] [diff] [review]
patch v1

Review of attachment 593787 [details] [diff] [review]:
-----------------------------------------------------------------

Patch looks good. Thanks!
Comment 3 Paul Rouget [:paul] 2012-02-06 22:11:07 PST
https://hg.mozilla.org/integration/fx-team/rev/5f7811f0542f
Comment 4 Tim Taubert [:ttaubert] 2012-02-07 11:24:41 PST
https://hg.mozilla.org/mozilla-central/rev/5f7811f0542f
Comment 5 Mihai Sucan [:msucan] 2012-02-09 12:43:51 PST
Please document the new getIndentationString() method added in Firefox 13. Thank you!
Comment 6 Eric Shepherd [:sheppy] 2012-04-28 14:56:26 PDT
Already documented but now labeled as new in Firefox 13.

https://developer.mozilla.org/en/JavaScript_code_modules/source-editor.jsm#getIndentationString%28%29

Listed on Firefox 13 for developers.

Note You need to log in before you can comment on or make changes to this bug.