Active
Project:
I can be your module (you can be my theme)
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 Oct 2010 at 23:36 UTC
Updated:
18 Oct 2010 at 04:20 UTC
Right now we have duplicate code/text regarding the aspects (in SINGEME.txt, PLAYME.txt and powerballad_load_aspect()).
We should remove the SINGME.txt and PLAYME.txt files and replace them with [aspect].txt. That aspect file will then be parsed inside powerballad_load_aspect() and split by line into the appropriate array. This could easily be done with the file() function.
By doing this we can separate the text, chords and aspect loading and avoid duplicate code/texts.
Comments
Comment #1
itangalo commentedI've been thinking something similar, and I definately agree.
Before it can be done there must be a way of handling the inline breaks for the lyrics – ie that line number one could be written both
It feels so lonely late at night / wrapping up a piece of codeand
I suppose a check for the standard Drupal indent could work.