guiguan / file-header

FileHeader for Atom
https://atom.io/packages/file-header
Other
31 stars 21 forks source link

last_modified_by not updating if not in a separate line #67

Open cfranc0 opened 3 years ago

cfranc0 commented 3 years ago

Hello!

I've been using this packet for quite some time and something has been bugging me lately. Usually I edit the template for the header and I've always wanted to make it more compact than the default one. This is what I've been working with lately

/**
 *  @Filename: {{filename}}
 *   @Project: {{project_name}}
 *   @Created: {{create_time}} by {{author}} : {{email}}
 * @Last edit: {{last_modified_time}} by {{last_modified_by}}
 *   @License: {{license}}
 * @Copyright: {{copyright}}
 */

Some options are currently disabled so not every line is shown, regardless this is the result:

/**
 *   @Created: 2021-03-18T21:04:56+01:00 by francesco : me@email.com
 * @Last edit: 2021-03-19T21:54:42+01:00 by {{last_modified_by}}
 */

The last_modified_by is only updated when the line is by itself. Even if the order is inverted * @Last edit: {{last_modified_by}} by 2021-03-19T21:56:04+01:00

Thank you for your help!