MediaWiki:Common.js: Difference between revisions

fix non-formatted item names and lore
(fix for things without lore)
(fix non-formatted item names and lore)
Line 34: Line 34:
   var spans = 0;
   var spans = 0;
   var res = ''
   var res = ''
   for (var i = 1; i < text.length; i++) {
   for (var i = 0; i < text.length; i++) {
     if (text[i] == '&') continue;
     if (text[i] == '&') continue;
     else if (text[i] == '/') res += '<br>';
     else if (text[i] == '/') {
      res += '<br>';
      continue;
    }
     else if (text[i - 1] == '&') {
     else if (text[i - 1] == '&') {
       if (text[i] == 'r') {
       if (text[i] == 'r') {
184

edits