The LimeSurvey Fund-Raiser 2012 is complete. Thank you for donating a total of 25,000 USD!     List of donors »

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Unwanted line break between mandatory asterisk and question text

Unwanted line break between mandatory asterisk and question text 6 months 3 weeks ago #87246

  • che
  • che's Avatar
  • OFFLINE
  • Silver Donor
  • Posts: 15
  • Karma: 0
Hello, I'm using the Basic template in LimeSurvey 2.00. I've edited the question.pstpl and here is what I think is the relevant part:
<table width="100%" cellspacing="0" cellpadding="8" border="0">
					<tr>
						<td class="be">
                                                  <span class="asterisk">{QUESTION_MANDATORY}</span><br />{QUESTION_TEXT}<br /><span class="questionhelp">{QUESTION_HELP}</span>
 
							{QUESTION_MAN_MESSAGE}
							{QUESTION_VALID_MESSAGE}
							{QUESTION_FILE_VALID_MESSAGE}
						</td>
					</tr>
        	        <!--<tr><td><font size="-1"><i>{QUESTIONHELPPLAINTEXT}</i></font></td></tr>-->
					<tr>
						<td width="100%" class="answer">{ANSWER}</td>
					</tr>
	                <tr>
						<td class="survey-question-help">{QUESTIONHELP}</td>
					</tr>
				</table>



The problem is that there is a line/paragraph break between the mandatory asterisk and the question text. Screenshot attached. I also looked in template.css but nothing seems to stand out.

Any help? Thanks much.

Che



Screenshot2012-10-23at11.54.33AM.png
The administrator has disabled public write access.

Re: Unwanted line break between mandatory asterisk and question text 6 months 3 weeks ago #87247

  • lowprofile
  • lowprofile's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 20
  • Thank you received: 1
  • Karma: 0
This is also the case for me, I would suspect its the phpeditor and the browser. Some browsers don't add it, firefox will if you save the question text directly in the regular phpUI.
If you are in the source and save it doesn't add the paragraph tag <p>
The administrator has disabled public write access.

Re: Unwanted line break between mandatory asterisk and question text 6 months 3 weeks ago #87276

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2853
  • Thank you received: 423
  • Karma: 243
I don't see any <p> tags in your script but I do see a line break after the .asterisk span.

Try changing this:
<span class="asterisk">{QUESTION_MANDATORY}</span><br />{QUESTION_TEXT}<br /><span class="questionhelp">{QUESTION_HELP}</span>

T this:
<span class="asterisk">{QUESTION_MANDATORY}</span>$nbsp{QUESTION_TEXT}<br /><span class="questionhelp">{QUESTION_HELP}</span>
Cheers,
Tony

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: Unwanted line break between mandatory asterisk and question text 6 months 3 weeks ago #87322

  • che
  • che's Avatar
  • OFFLINE
  • Silver Donor
  • Posts: 15
  • Karma: 0
@lowprofile -- thank you. It adds an extra step, but using the source works for me.

@tpartner -- thanks as well, but making that change didn't affect anything.

Thanks,
Che
The administrator has disabled public write access.
  • Page:
  • 1
Moderators: DenisChenu, ITEd
Time to create page: 0.384 seconds
Donation Image