Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Item14070: improve attachment link formatting on attach #15

Closed
wants to merge 5 commits into from

Conversation

phkehl
Copy link
Contributor

@phkehl phkehl commented Oct 7, 2016

See https://foswiki.org/Tasks/Item14070 for the discussion.

Philippe Kehl and others added 5 commits May 13, 2016 15:46
This improves the "Create a link to the attached file" formatting
options and defaults.

- don't default empty $comment to $filename
- add $commentorfilename format token/variable
- update documentation
- update default ATTACHEDFILELINKFORMAT and ATTACHEDIMAGEFORMAT
  to use $commentorfilename instead of $comment
Second, better attempt based on discussion (replaces 7a4b848).

- expand common variables (macros) in ATTACHEDFILELINKFORMAT and ATTACHEDIMAGEFORMAT.
- solve the problem (of rendering links for files/images with empty comment) using %IF%
- update documentation
- make Perltidy happy :-/
@gac410
Copy link
Member

gac410 commented Mar 15, 2017

This has been merged into master for 2.2. Thanks for the patch.

@gac410 gac410 closed this Mar 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants