Changeset 29930 for other-projects

Show
Ignore:
Timestamp:
26.05.2015 21:09:26 (4 years ago)
Author:
davidb
Message:

String replacement to help with line wraps in description entered, either Unix or Windows

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • other-projects/nz-flag-design/trunk/main-form/my-design.jsp

    r29919 r29930  
    131131         String name  = request.getParameter("name"); 
    132132         String email = request.getParameter("email"); 
    133          String desc  = request.getParameter("desc"); 
     133         String desc  = request.getParameter("desc").replace("\n"," ").replace("\r"," "); 
    134134 
    135135     BufferedWriter bw = new BufferedWriter(new FileWriter(full_pub_json_file)); 
     
    164164       name  = request.getParameter("name"); 
    165165       email = request.getParameter("email"); 
    166        desc  = request.getParameter("desc"); 
     166       desc  = request.getParameter("desc").replace("\n"," ").replace("\r"," ").replace("  "," "); 
    167167     } 
    168168     else {