Add an API to SourceEditor to retrieve the character(s) used for indentation

RESOLVED FIXED in Firefox 13

Status

()

Firefox
Developer Tools
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: cedricv, Assigned: cedricv)

Tracking

(Blocks: 1 bug, {dev-doc-complete})

Trunk
Firefox 13
dev-doc-complete
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [sourceeditor])

Attachments

(1 attachment)

(Assignee)

Description

5 years ago
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.
(Assignee)

Updated

5 years ago
Blocks: 723460
(Assignee)

Comment 1

5 years ago
Created attachment 593787 [details] [diff] [review]
patch v1
Attachment #593787 - Flags: review?(mihai.sucan)
Comment on attachment 593787 [details] [diff] [review]
patch v1

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

Patch looks good. Thanks!
Attachment #593787 - Flags: review?(mihai.sucan) → review+

Updated

5 years ago
Whiteboard: [sourceeditor]
Version: unspecified → Trunk
(Assignee)

Updated

5 years ago
Whiteboard: [sourceeditor] → [sourceeditor][land-in-fx-team]
(Assignee)

Updated

5 years ago
Blocks: 723651
(Assignee)

Updated

5 years ago
Blocks: 723820

Comment 3

5 years ago
https://hg.mozilla.org/integration/fx-team/rev/5f7811f0542f
Whiteboard: [sourceeditor][land-in-fx-team] → [sourceeditor][fixed-in-fx-team]
https://hg.mozilla.org/mozilla-central/rev/5f7811f0542f
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Whiteboard: [sourceeditor][fixed-in-fx-team] → [sourceeditor]
Target Milestone: --- → Firefox 13
Please document the new getIndentationString() method added in Firefox 13. Thank you!
Keywords: dev-doc-needed
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.
Keywords: dev-doc-needed → dev-doc-complete
You need to log in before you can comment on or make changes to this bug.