Просмотр исходного кода

Merge branch 'dev' of https://github.com/openNAMU/openNAMU into dev

잉여개발기 (SPDV) 3 лет назад
Родитель
Сommit
e7aec85407
3 измененных файлов с 4 добавлено и 15 удалено
  1. 1 1
      route/tool/func.py
  2. 3 4
      route/tool/func_render_namumark.py
  3. 0 10
      views/main_css/css/main.css

+ 1 - 1
route/tool/func.py

@@ -1041,7 +1041,7 @@ def wiki_css(data):
     data += ['' for _ in range(0, 3 - len(data))]
     
     data_css = ''
-    data_css_ver = '160'
+    data_css_ver = '161'
     
     # Func JS + Defer
     data_css += '<script src="/views/main_css/js/func/func.js?ver=' + data_css_ver + '"></script>'

+ 3 - 4
route/tool/func_render_namumark.py

@@ -4,7 +4,7 @@ class class_do_render_namumark:
     def __init__(self, curs, doc_name, doc_data, doc_set, lang_data):
         self.curs = curs
         
-        self.doc_data = doc_data
+        self.doc_data = doc_data.replace('\r', '')
         self.doc_name = doc_name
         self.doc_set = doc_set
         self.doc_include = self.doc_set['doc_include'] if 'doc_include' in self.doc_set else ''
@@ -963,7 +963,7 @@ class class_do_render_namumark:
                     # remove include
                     include_data = re.sub(include_regex, '', include_data)
 
-                    self.data_include += [[self.doc_include + 'opennamu_include_' + str(include_num), include_name, include_data, 'style="display: inline-block;"']]
+                    self.data_include += [[self.doc_include + 'opennamu_include_' + str(include_num), include_name, include_data, 'style="display: inline;"']]
 
                     data_name = self.get_tool_data_storage('' + \
                         include_link + \
@@ -1234,8 +1234,7 @@ class class_do_render_namumark:
 
                 table_data_end += '</tr>'
                 table_data_end = '<table style="' + table_parameter['table'] + '">' + table_caption + table_data_end + '</table>'
-                if table_parameter['div'] != '':
-                    table_data_end = '<div style="' + table_parameter['div'] + '">' + table_data_end + '</div>'
+                table_data_end = '<div class="table_safe" style="' + table_parameter['div'] + '">' + table_data_end + '</div>'
 
                 self.render_data = re.sub(table_regex, lambda x : ('\n<front_br>' + table_data_end + '<back_br>\n'), self.render_data, 1)
 

+ 0 - 10
views/main_css/css/main.css

@@ -211,16 +211,6 @@ pre {
     white-space: pre-wrap;
 }
 
-@media (max-width: 768px) {
-    table {
-        min-width: 100%;
-    }
-    
-    .table_safe {
-        min-width: 100%;
-    }
-}
-
 .content {
     height: 500px;
 }