CMS MADE SIMPLE FORGE

CGBetterForms

 

[#11609] TAB characters are not implemented in the form output.

avatar
Created By: Deleted User (deleteduser_11200)
Date Submitted: Tue Oct 17 02:07:37 -0400 2017

Assigned To:
Version: 1.1.4
CMSMS Version: 2.2.3.1
Severity: Minor
Resolution: Fixed
State: Closed
Summary:
TAB characters are not implemented in the form output.
Detailed Description:
* Description of the problem:

TAB characters are not implemented in the form output.

* How to reproduce:

- Go to /admin CGBetterForms
- Click on a form created before
- Select the [Form output] tab

The Form templating help (below) reads:

EOL 	string 	An end of line character sequence (may be platform specific). This
is suitable for use in file output templates.
LF 	string 	A line feed character
EOL 	string 	A tab character, suitable for use in file output templates.

* Solution:

The last line of the form templating help should read:

TAB 	string 	A tab character, suitable for use in file output templates.

Also the TAB should be implemented in the utils class, EOL is implemented twice.


===== code snippet =====

/modules/CGBetterForms/lib/class.utils.php

217         $obj = new \StdClass;
218         $obj->key = 'EOL';
219         $obj->type = 'string';
220         $obj->desc = $mod->Lang('varhelp_cgbf_EOL');
221         $vars[] = $obj;
222 
223         $obj = new \StdClass;
224         $obj->key = 'LF';
225         $obj->type = 'string';
226         $obj->desc = $mod->Lang('varhelp_cgbf_LF');
227         $vars[] = $obj;
228 
229         $obj = new \StdClass;
230         $obj->key = 'EOL';
231         $obj->type = 'string';
232         $obj->desc = $mod->Lang('varhelp_cgbf_TAB');
233         $vars[] = $obj;
234 

===== /code snippet =====


History

Comments
avatar
Date: 2017-11-18 09:05
Posted By: Robert Campbell (calguy1000)

fixed documentation issue.
      
avatar
Date: 2017-11-19 07:34
Posted By: Deleted User (deleteduser_11200)

Thank you, have a look when released. 

Can not yet verify if not only the documentation but also the
"/modules/CGBetterForms/lib/class.utils.php"is fixed.
      
avatar
Date: 2018-01-29 05:12
Posted By: Deleted User (deleteduser_11200)

Verified fix, closed issue.
      
Updates

Updated: 2018-01-29 05:13
state: Open => Closed

Updated: 2017-11-18 09:05
resolution_id: => 7