зеркало из https://github.com/mozilla/pjs.git
Turn on whitespace insertion
This commit is contained in:
Родитель
734bf54d98
Коммит
3867426c89
|
@ -74,10 +74,8 @@ NS_IMETHODIMP SplitElementTxn::Do(void)
|
|||
result = nsEditor::SplitNodeImpl(mExistingRightNode, mOffset, mNewLeftNode, mParent);
|
||||
if (NS_SUCCEEDED(result) && mNewLeftNode)
|
||||
{
|
||||
#ifdef DEBUG_akkana
|
||||
// Insert formatting whitespace for the new node:
|
||||
mEditor->InsertFormattingForNode(mExistingRightNode);
|
||||
#endif
|
||||
|
||||
nsCOMPtr<nsIDOMSelection>selection;
|
||||
mEditor->GetSelection(getter_AddRefs(selection));
|
||||
|
|
|
@ -922,13 +922,13 @@ nsEditor::InsertFormattingForNode(nsIDOMNode* aNode)
|
|||
PRInt32 offset = GetIndexOf(parent, aNode);
|
||||
|
||||
#ifdef DEBUG_akkana
|
||||
DumpContentTree();
|
||||
//DumpContentTree();
|
||||
nsString namestr;
|
||||
aNode->GetNodeName(namestr);
|
||||
char* nodename = namestr.ToNewCString();
|
||||
printf("Inserting formatting for node <%s> at offset %d\n",
|
||||
nodename, offset);
|
||||
delete[] nodename;
|
||||
nsCRT::free(nodename);
|
||||
#endif /* DEBUG_akkana */
|
||||
|
||||
//
|
||||
|
|
|
@ -74,10 +74,8 @@ NS_IMETHODIMP SplitElementTxn::Do(void)
|
|||
result = nsEditor::SplitNodeImpl(mExistingRightNode, mOffset, mNewLeftNode, mParent);
|
||||
if (NS_SUCCEEDED(result) && mNewLeftNode)
|
||||
{
|
||||
#ifdef DEBUG_akkana
|
||||
// Insert formatting whitespace for the new node:
|
||||
mEditor->InsertFormattingForNode(mExistingRightNode);
|
||||
#endif
|
||||
|
||||
nsCOMPtr<nsIDOMSelection>selection;
|
||||
mEditor->GetSelection(getter_AddRefs(selection));
|
||||
|
|
|
@ -922,13 +922,13 @@ nsEditor::InsertFormattingForNode(nsIDOMNode* aNode)
|
|||
PRInt32 offset = GetIndexOf(parent, aNode);
|
||||
|
||||
#ifdef DEBUG_akkana
|
||||
DumpContentTree();
|
||||
//DumpContentTree();
|
||||
nsString namestr;
|
||||
aNode->GetNodeName(namestr);
|
||||
char* nodename = namestr.ToNewCString();
|
||||
printf("Inserting formatting for node <%s> at offset %d\n",
|
||||
nodename, offset);
|
||||
delete[] nodename;
|
||||
nsCRT::free(nodename);
|
||||
#endif /* DEBUG_akkana */
|
||||
|
||||
//
|
||||
|
|
Загрузка…
Ссылка в новой задаче