"No preview for this file type" for various .pm files
Closed
"No preview for this file type" for various .pm files
Created by: pnull
for many of our .pm files, gitlab doesn't show the diff on the commit page. instead a message "No preview for this file type" is shown.
Those files are perl module files. they are plain text files - no binaries or something like that.
How can i make sure, gitlab shows those files ?
Created by: rroemhild
I have a similar problem with javascript files. If a JQuery javascript file
example1.js
starts with a newline, gitlab handles it as a binary file, doesn't show the commit diff and provides a download link in file view. Remove the newline(s)example2.js
or add a comment in line one fix the issue for me.$ file *.js example1.js: Emacs v18 byte-compiled Lisp data example2.js: ASCII text, with very long lines
$ head -n3 *.js ==> example1.js <== (function($) { var functName = "socials", functClass = "extSocials"; ==> example2.js <== (function($) { var functName = "socials", functClass = "extSocials"; var extSocials = function(node, options) {
By Administrator on 2013-01-22T11:10:08 (imported from GitLab project)
Created by: bbodenmiller
Thanks for the issue report. Please reformat your issue to conform to the issue tracker guidelines found in our contributing guidelines.
By Administrator on 2013-06-08T13:43:05 (imported from GitLab project)