Ignore:
Timestamp:
05/26/15 21:09:26 (6 years ago)
Author:
davidb
Message:

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

File:
1 edited

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 {
Note: See TracChangeset for help on using the changeset viewer.