Merge branch 'bzr/golem' of /Users/distler/Sites/code/instiki
This commit is contained in:
commit
9ef71a7bce
|
@ -1,5 +1,8 @@
|
|||
#coding: utf-8
|
||||
# Contains all the methods for finding and replacing wiki words
|
||||
|
||||
require 'stringsupport'
|
||||
|
||||
module WikiWords
|
||||
# In order of appearance: Latin, greek, cyrillic, armenian
|
||||
I18N_HIGHER_CASE_LETTERS =
|
||||
|
@ -18,7 +21,7 @@ module WikiWords
|
|||
CAMEL_CASED_WORD_BORDER = /([a-z#{I18N_LOWER_CASE_LETTERS}])([A-Z#{I18N_HIGHER_CASE_LETTERS}])/u
|
||||
|
||||
def self.separate(wiki_word)
|
||||
wiki_word.gsub(CAMEL_CASED_WORD_BORDER, '\1 \2')
|
||||
wiki_word.dup.as_utf8.gsub(CAMEL_CASED_WORD_BORDER, '\1 \2')
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -61,9 +61,8 @@ function updateSize(elt, w, h) {
|
|||
var parentwidth = $('Content').getWidth();
|
||||
var f = $('MarkupHelp');
|
||||
if (f.visible()) { parentwidth = parentwidth - f.getWidth() - 20 }
|
||||
var newcols = Math.floor(parentwidth/w) - 1;
|
||||
var newrows = Math.floor(parentheight/h - 3);
|
||||
elt.writeAttribute({'cols': newcols, 'rows': newrows });
|
||||
elt.writeAttribute({'cols': Math.floor(parentwidth/w) - 1,
|
||||
'rows': Math.floor(parentheight/h) - 6 });
|
||||
elt.setStyle({Width: parentwidth, Height: parentheight});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue