잉여개발기 (SPDV) 3 ani în urmă
părinte
comite
0d78c2cb7c
4 a modificat fișierele cu 6 adăugiri și 3 ștergeri
  1. 2 2
      route/edit.py
  2. 2 0
      route/tool/func.py
  3. 1 0
      route/tool/func_render_namumark.py
  4. 1 1
      version.json

+ 2 - 2
route/edit.py

@@ -156,7 +156,7 @@ def edit(name = 'Test', section = 0, do_type = ''):
 
                             if section == count:
                                 data_section_sub = data_section
-                                data_section_sub = re.sub(data_match_re, '.' * len(data_match.group(0)), data_section_sub, 1)
+                                data_section_sub = re.sub(data_match_re, ('.' * (len(data_match.group(0)) - 1)) + '\n', data_section_sub, 1)
 
                                 data_match_plus = re.search(data_match_re, data_section_sub)
                                 if data_match_plus:
@@ -170,7 +170,7 @@ def edit(name = 'Test', section = 0, do_type = ''):
 
                                 break
                             else:
-                                data_section = re.sub(data_match_re, '.' * len(data_match.group(0)), data_section, 1)
+                                data_section = re.sub(data_match_re, ('.' * (len(data_match.group(0)) - 1)) + '\n', data_section, 1)
 
                             count += 1
             else:

+ 2 - 0
route/tool/func.py

@@ -613,6 +613,8 @@ def update(ver_num, set_data):
                 'User-agent: *\n' + \
                 'Disallow: /\n' + \
                 'Allow: /$\n' + \
+                'Allow: /image/\n' + \
+                'Allow: /views/\n' + \
                 'Allow: /w/' + \
             ''
             if db_data[0][0] == robot_default:

+ 1 - 0
route/tool/func_render_namumark.py

@@ -1082,6 +1082,7 @@ class class_do_render_namumark:
         # get_tool_px_add_check
         # get_tool_css_safe
         # todo : after text render text not use to make table
+        # todo : table caption
         def do_render_table_parameter(cell_count, parameter, data, option = {}):
             table_parameter_all = { "div" : "", "table" : "", "tr" : "", "td" : "", "col" : "", "colspan" : "", "rowspan" : "", "data" : "" }
             

+ 1 - 1
version.json

@@ -1,6 +1,6 @@
 {
     "beta" : {
-        "r_ver" : "v3.4.5 (stable2) (beta4) (dev66)",
+        "r_ver" : "v3.4.5-unstable (stable2) (beta4-67)",
         "c_ver" : "3500354",
         "s_ver" : "3500110"
     }